adding patternIdentifier samples

This commit is contained in:
Oliver Egger 2019-05-30 12:03:23 +02:00
parent e3faaa5ccc
commit 6d94627465
9 changed files with 745 additions and 385 deletions

View File

@ -9,22 +9,30 @@
}, },
"group-choice-bad1.json": { "group-choice-bad1.json": {
"errorCount": 2, "errorCount": 2,
"errors": ["/Group/characteristic (line 10, col21) Unrecognised property '@value' ", "errors": [
"Group.characteristic (line 6, col6) Element 'Group.characteristic.value[x]': minimum required = 1, but only found 0"] "/Group/characteristic (line 10, col21) Unrecognised property '@value' ",
"Group.characteristic (line 6, col6) Element 'Group.characteristic.value[x]': minimum required = 1, but only found 0"
]
}, },
"group-choice-bad2.json": { "group-choice-bad2.json": {
"errorCount": 2, "errorCount": 2,
"errors": ["/Group/characteristic (line 10, col25) Unrecognised property '@valueInteger' ", "errors": [
"Group.characteristic (line 6, col6) Element 'Group.characteristic.value[x]': minimum required = 1, but only found 0 "] "/Group/characteristic (line 10, col25) Unrecognised property '@valueInteger' ",
"Group.characteristic (line 6, col6) Element 'Group.characteristic.value[x]': minimum required = 1, but only found 0 "
]
}, },
"group-choice-bad3.json": { "group-choice-bad3.json": {
"errorCount": 2, "errorCount": 2,
"errors": ["/Group/characteristic/value[x] (line 10, col25) Error parsing JSON: the primitive value must be a boolean ", "errors": [
"Group.characteristic.valueBoolean (line 10, col25) boolean values must be 'true' or 'false' "] "/Group/characteristic/value[x] (line 10, col25) Error parsing JSON: the primitive value must be a boolean ",
"Group.characteristic.valueBoolean (line 10, col25) boolean values must be 'true' or 'false' "
]
}, },
"group-choice-empty.json": { "group-choice-empty.json": {
"errorCount": 1, "errorCount": 1,
"errors": ["(document) Error parsing JSON: Error parsing JSON source: Unexpected JSON syntax at Line 8 (path=[//characteristic[]/characteristicvalueBoolean]) "] "errors": [
"(document) Error parsing JSON: Error parsing JSON source: Unexpected JSON syntax at Line 8 (path=[//characteristic[]/characteristicvalueBoolean]) "
]
}, },
"group-choice-good.json": { "group-choice-good.json": {
"errorCount": 0 "errorCount": 0
@ -40,7 +48,9 @@
}, },
"list-bad-syntax.json": { "list-bad-syntax.json": {
"errorCount": 1, "errorCount": 1,
"errors": ["(document) Error parsing JSON: Error parsing JSON source: Unexpected JSON syntax at Line 7 (path=[/_id]) "] "errors": [
"(document) Error parsing JSON: Error parsing JSON source: Unexpected JSON syntax at Line 7 (path=[/_id]) "
]
}, },
"list-contained-bad.json": { "list-contained-bad.json": {
"errorCount": 3, "errorCount": 3,
@ -55,8 +65,10 @@
}, },
"list-empty1.json": { "list-empty1.json": {
"errorCount": 2, "errorCount": 2,
"errors": ["/List/entry (line 7, col6) Object must have some content ", "errors": [
"List.entry (line 7, col6) Element 'List.entry.item': minimum required = 1, but only found 0 "] "/List/entry (line 7, col6) Object must have some content ",
"List.entry (line 7, col6) Element 'List.entry.item': minimum required = 1, but only found 0 "
]
}, },
"list-empty2.json": { "list-empty2.json": {
"errorCount": 0 "errorCount": 0
@ -66,25 +78,34 @@
}, },
"list-extension2.json": { "list-extension2.json": {
"errorCount": 2, "errorCount": 2,
"errors": ["/List/status/extension (line 18, col8) Unrecognised property '@valueCodeX' ", "List.status.extension (line 15, col8) Must have either extensions or value[x], not both [extension.exists() != value.exists()]"] "errors": [
"/List/status/extension (line 18, col8) Unrecognised property '@valueCodeX' ",
"List.status.extension (line 15, col8) Must have either extensions or value[x], not both [extension.exists() != value.exists()]"
]
}, },
"list-minimal.json": { "list-minimal.json": {
"errorCount": 0 "errorCount": 0
}, },
"list-unknown-prop.json": { "list-unknown-prop.json": {
"errorCount": 1, "errorCount": 1,
"errors": ["/List (line 12, col23) Unrecognised property '@other' "] "errors": [
"/List (line 12, col23) Unrecognised property '@other' "
]
}, },
"list-wrong-code.json": { "list-wrong-code.json": {
"errorCount": 1, "errorCount": 1,
"errors": ["List.status (line 4, col24) The value provided ('current1') is not in the value set http://hl7.org/fhir/ValueSet/list-status (http://hl7.org/fhir/ValueSet/list-status, and a code is required from this value set "] "errors": [
"List.status (line 4, col24) The value provided ('current1') is not in the value set http://hl7.org/fhir/ValueSet/list-status (http://hl7.org/fhir/ValueSet/list-status, and a code is required from this value set "
]
}, },
"list-wrong-order.json": { "list-wrong-order.json": {
"errorCount": 0 "errorCount": 0
}, },
"list-xhtml-attribute.json": { "list-xhtml-attribute.json": {
"errorCount": 1, "errorCount": 1,
"errors": ["List.text.div (line 15, col4) Illegal attribute name in the XHTML ('onClick' on 'p') "] "errors": [
"List.text.div (line 15, col4) Illegal attribute name in the XHTML ('onClick' on 'p') "
]
}, },
"list-xhtml-correct1.json": { "list-xhtml-correct1.json": {
"errorCount": 0 "errorCount": 0
@ -98,60 +119,70 @@
}, },
"list-xhtml-element.json": { "list-xhtml-element.json": {
"errorCount": 2, "errorCount": 2,
"errors": ["List.text.div (line 15, col4) Illegal element name in the XHTML ('object') ", "errors": [
"List.text.div (line 15, col4) Illegal attribute name in the XHTML ('value' on 'object') "] "List.text.div (line 15, col4) Illegal element name in the XHTML ('object') ",
"List.text.div (line 15, col4) Illegal attribute name in the XHTML ('value' on 'object') "
]
}, },
"list-xhtml-syntax.json": { "list-xhtml-syntax.json": {
"errorCount": 1, "errorCount": 1,
"errors": ["/List/text/div (line 15, col4) Error parsing XHTML: Malformed XHTML: Found \"</pa>\" expecting \"</p>\" at line 2 column 37 "] "errors": [
"/List/text/div (line 15, col4) Error parsing XHTML: Malformed XHTML: Found \"</pa>\" expecting \"</p>\" at line 2 column 37 "
]
}, },
"list-xhtml-wrongns1.json": { "list-xhtml-wrongns1.json": {
"errorCount": 1, "errorCount": 1,
"errors": ["List.text.div (line 15, col4) Wrong namespace on the XHTML ('http://www.w3.org/1999/xhtmlx') "] "errors": [
"List.text.div (line 15, col4) Wrong namespace on the XHTML ('http://www.w3.org/1999/xhtmlx') "
]
}, },
"list-xhtml-wrongns2.json": { "list-xhtml-wrongns2.json": {
"errorCount": 1, "errorCount": 1,
"errors": ["List.text.div (line 15, col4) Wrong namespace on the XHTML ('null') "] "errors": [
"List.text.div (line 15, col4) Wrong namespace on the XHTML ('null') "
]
}, },
"list-xhtml-xxe.json": { "list-xhtml-xxe.json": {
"errorCount": 1, "errorCount": 1,
"errors": ["/List/text/div (line 7, col4) Error parsing XHTML: Malformed XHTML: Found a DocType declaration, and these are not allowed (XXE security vulnerability protection) "] "errors": [
"/List/text/div (line 7, col4) Error parsing XHTML: Malformed XHTML: Found a DocType declaration, and these are not allowed (XXE security vulnerability protection) "
]
}, },
"synthea.json": { "synthea.json": {
"errorCount": 2 "errorCount": 2
}, },
"patient-good.json" : { "patient-good.json": {
"errorCount": 0, "errorCount": 0,
"warningCount": 0 "warningCount": 0
}, },
"patient-lang1.json" : { "patient-lang1.json": {
"errorCount": 0, "errorCount": 0,
"warningCount": 1 "warningCount": 1
}, },
"patient-lang2.json" : { "patient-lang2.json": {
"errorCount": 0, "errorCount": 0,
"warningCount": 0 "warningCount": 0
}, },
"patient-lang3.json" : { "patient-lang3.json": {
"errorCount": 0, "errorCount": 0,
"warningCount": 1 "warningCount": 1
}, },
"patient-au-5.json" : { "patient-au-5.json": {
"errorCount": 0, "errorCount": 0,
"warningCount": 1, "warningCount": 1,
"profile" : { "profile": {
"source" : "profile-patient-au.xml", "source": "profile-patient-au.xml",
"errorCount": 0 "errorCount": 0
} }
}, },
"medication-atc.json" : { "medication-atc.json": {
"errorCount": 1, "errorCount": 1,
"allowed-extension-domain" : "https://api-v8-r4.hspconsortium.org/DrugFormulary0/open" "allowed-extension-domain": "https://api-v8-r4.hspconsortium.org/DrugFormulary0/open"
}, },
"bp.json" : { "bp.json": {
"errorCount": 0, "errorCount": 0,
"profile" : { "profile": {
"source" : "bp-profile.xml", "source": "bp-profile.xml",
"errorCount": 0 "errorCount": 0
} }
} }
@ -160,27 +191,33 @@
"bundle-good.xml": { "bundle-good.xml": {
"errorCount": 0 "errorCount": 0
}, },
"primitive-good.xml" : { "primitive-good.xml": {
"errorCount": 0 "errorCount": 0
}, },
"primitive-bad.xml" : { "primitive-bad.xml": {
"errorCount": 47 "errorCount": 47
}, },
"primitive-bad-empty.xml" : { "primitive-bad-empty.xml": {
"errorCount": 3 "errorCount": 3
}, },
"group-choice-bad1.xml": { "group-choice-bad1.xml": {
"errorCount": 2, "errorCount": 2,
"errors": ["Undefined element \'value\"", "errors": [
"Element \'Group.characteristic.value[x]\': minimum required = 1, but only found 0"] "Undefined element \'value\"",
"Element \'Group.characteristic.value[x]\': minimum required = 1, but only found 0"
]
}, },
"group-choice-bad3.xml": { "group-choice-bad3.xml": {
"errorCount": 1, "errorCount": 1,
"errors": ["boolean values must be \'true\' or \'false\'"] "errors": [
"boolean values must be \'true\' or \'false\'"
]
}, },
"group-choice-empty.xml": { "group-choice-empty.xml": {
"errorCount": 1, "errorCount": 1,
"errors": ["Element must have some content"] "errors": [
"Element must have some content"
]
}, },
"group-choice-good.xml": { "group-choice-good.xml": {
"errorCount": 0 "errorCount": 0
@ -190,7 +227,9 @@
}, },
"list-bad-syntax.xml": { "list-bad-syntax.xml": {
"errorCount": 1, "errorCount": 1,
"errors": ["org.xml.sax.SAXParseException; lineNumber: 7; columnNumber: 3; The element type \"id\" must be terminated by the matching end-tag \"</id>\"."] "errors": [
"org.xml.sax.SAXParseException; lineNumber: 7; columnNumber: 3; The element type \"id\" must be terminated by the matching end-tag \"</id>\"."
]
}, },
"list-contained-bad.xml": { "list-contained-bad.xml": {
"errorCount": 3, "errorCount": 3,
@ -205,13 +244,17 @@
}, },
"list-empty1.xml": { "list-empty1.xml": {
"errorCount": 2, "errorCount": 2,
"errors": ["Element must have some content", "errors": [
"Element \'List.entry.item\': minimum required = 1, but only found 0"] "Element must have some content",
"Element \'List.entry.item\': minimum required = 1, but only found 0"
]
}, },
"list-empty2.xml": { "list-empty2.xml": {
"errorCount": 2, "errorCount": 2,
"errors": ["Element must have some content", "errors": [
"Element \'List.entry.item\': minimum required = 1, but only found 0"] "Element must have some content",
"Element \'List.entry.item\': minimum required = 1, but only found 0"
]
}, },
"list-extension.xml": { "list-extension.xml": {
"errorCount": 0 "errorCount": 0
@ -221,39 +264,57 @@
}, },
"list-text.xml": { "list-text.xml": {
"errorCount": 1, "errorCount": 1,
"errors": ["Text should not be present"] "errors": [
"Text should not be present"
]
}, },
"list-unknown-attr.xml": { "list-unknown-attr.xml": {
"errorCount": 1, "errorCount": 1,
"errors": ["Undefined attribute \'@other\'"] "errors": [
"Undefined attribute \'@other\'"
]
}, },
"list-unknown-element.xml": { "list-unknown-element.xml": {
"errorCount": 1, "errorCount": 1,
"errors": ["Undefined element \'mode1\""] "errors": [
"Undefined element \'mode1\""
]
}, },
"list-wrong-code.xml": { "list-wrong-code.xml": {
"errorCount": 1, "errorCount": 1,
"errors": ["The value provided (\'current1\') is not in the value set http://hl7.org/fhir/ValueSet/list-status (http://hl7.org/fhir/ValueSet/list-status, and a code is required from this value set"] "errors": [
"The value provided (\'current1\') is not in the value set http://hl7.org/fhir/ValueSet/list-status (http://hl7.org/fhir/ValueSet/list-status, and a code is required from this value set"
]
}, },
"list-wrong-ns.xml": { "list-wrong-ns.xml": {
"errorCount": 1, "errorCount": 1,
"errors": ["This does not appear to be a FHIR resource (unknown namespace/name \'http://hl7.org/fhir1::List\')"] "errors": [
"This does not appear to be a FHIR resource (unknown namespace/name \'http://hl7.org/fhir1::List\')"
]
}, },
"list-wrong-ns1.xml": { "list-wrong-ns1.xml": {
"errorCount": 1, "errorCount": 1,
"errors": ["Wrong namespace - expected \'http://hl7.org/fhir\'"] "errors": [
"Wrong namespace - expected \'http://hl7.org/fhir\'"
]
}, },
"list-wrong-ns2.xml": { "list-wrong-ns2.xml": {
"errorCount": 1, "errorCount": 1,
"errors": ["Wrong namespace - expected \'http://hl7.org/fhir\'"] "errors": [
"Wrong namespace - expected \'http://hl7.org/fhir\'"
]
}, },
"list-wrong-order.xml": { "list-wrong-order.xml": {
"errorCount": 1, "errorCount": 1,
"errors": ["Element \"status\" is out of order"] "errors": [
"Element \"status\" is out of order"
]
}, },
"list-xhtml-attribute.xml": { "list-xhtml-attribute.xml": {
"errorCount": 1, "errorCount": 1,
"errors": ["Illegal attribute name in the XHTML (\'onClick\' on \'p\')"] "errors": [
"Illegal attribute name in the XHTML (\'onClick\' on \'p\')"
]
}, },
"list-xhtml-correct1.xml": { "list-xhtml-correct1.xml": {
"errorCount": 0 "errorCount": 0
@ -263,316 +324,416 @@
}, },
"list-xhtml-element.xml": { "list-xhtml-element.xml": {
"errorCount": 2, "errorCount": 2,
"errors": ["Illegal element name in the XHTML (\'object\')", "errors": [
"Illegal attribute name in the XHTML (\'value\' on \'object\')"] "Illegal element name in the XHTML (\'object\')",
"Illegal attribute name in the XHTML (\'value\' on \'object\')"
]
}, },
"list-xhtml-wrongns1.xml": { "list-xhtml-wrongns1.xml": {
"errorCount": 1, "errorCount": 1,
"errors": ["Wrong namespace on the XHTML (\'http://www.w3.org/1999/xhtmlx\')"] "errors": [
"Wrong namespace on the XHTML (\'http://www.w3.org/1999/xhtmlx\')"
]
}, },
"list-xhtml-wrongns2.xml": { "list-xhtml-wrongns2.xml": {
"errorCount": 1, "errorCount": 1,
"errors": ["Wrong namespace on the XHTML (\'http://www.w3.org/1999/xhtmlx\')"] "errors": [
"Wrong namespace on the XHTML (\'http://www.w3.org/1999/xhtmlx\')"
]
}, },
"list-xhtml-wrongns3.xml": { "list-xhtml-wrongns3.xml": {
"errorCount": 1, "errorCount": 1,
"errors": ["Wrong namespace on the XHTML (\'http://hl7.org/fhir\')"] "errors": [
"Wrong namespace on the XHTML (\'http://hl7.org/fhir\')"
]
}, },
"list-xhtml-xxe1.xml": { "list-xhtml-xxe1.xml": {
"errorCount": 1, "errorCount": 1,
"errors": ["org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 10; DOCTYPE is disallowed when the feature \"http://apache.org/xml/features/disallow-doctype-decl\" set to true."] "errors": [
"org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 10; DOCTYPE is disallowed when the feature \"http://apache.org/xml/features/disallow-doctype-decl\" set to true."
]
}, },
"list-xhtml-xxe2.xml": { "list-xhtml-xxe2.xml": {
"errorCount": 1, "errorCount": 1,
"errors": ["Error reported by XML parser processing null: Scanner State 24 not Recognized "] "errors": [
"Error reported by XML parser processing null: Scanner State 24 not Recognized "
]
}, },
"slice-by-polymorphic-type.xml": { "slice-by-polymorphic-type.xml": {
"errorCount": 0, "errorCount": 0,
"profile" : { "profile": {
"source" : "slice-by-polymorphic-type-profile.xml", "source": "slice-by-polymorphic-type-profile.xml",
"errorCount": 0 "errorCount": 0
} }
}, },
"code-correct.xml" : { "code-correct.xml": {
"tx-dependent" : true, "tx-dependent": true,
"errorCount": 0 "errorCount": 0
}, },
"code-wrong-display.xml" : { "code-wrong-display.xml": {
"tx-dependent" : true, "tx-dependent": true,
"errorCount": 0, "errorCount": 0,
"warningCount" : 1 "warningCount": 1
}, },
"code-wrong-system.xml" : { "code-wrong-system.xml": {
"tx-dependent" : true, "tx-dependent": true,
"errorCount": 1 "errorCount": 1
}, },
"code-wrong-system-vs.xml" : { "code-wrong-system-vs.xml": {
"tx-dependent" : true, "tx-dependent": true,
"errorCount": 1 "errorCount": 1
}, },
"ccda-example.xml" : { "ccda-example.xml": {
"use-test" : false, "use-test": false,
"allowed-extension-domain" : "http://hl7.org/fhir/ccda/StructureDefinition/", "allowed-extension-domain": "http://hl7.org/fhir/ccda/StructureDefinition/",
"errorCount": 0, "errorCount": 0,
"profile" : { "profile": {
"source" : "ccda-profile.xml", "source": "ccda-profile.xml",
"errorCount": 0 "errorCount": 0
} }
}, },
"ccda-example-bad.xml" : { "ccda-example-bad.xml": {
"use-test" : false, "use-test": false,
"allowed-extension-domain" : "http://hl7.org/fhir/ccda/StructureDefinition/", "allowed-extension-domain": "http://hl7.org/fhir/ccda/StructureDefinition/",
"errorCount": 0, "errorCount": 0,
"profile" : { "profile": {
"source" : "ccda-profile.xml", "source": "ccda-profile.xml",
"errorCount": 1 "errorCount": 1
} }
}, },
"string-extensions-and-constraints-example.xml" : { "string-extensions-and-constraints-example.xml": {
"use-test" : true, "use-test": true,
"allowed-extension-domain" : "http://hl7.org/fhir/ccda/StructureDefinition/", "allowed-extension-domain": "http://hl7.org/fhir/ccda/StructureDefinition/",
"errorCount": 0, "errorCount": 0,
"profile" : { "profile": {
"source" : "string-extensions-and-constraints-profile.xml", "source": "string-extensions-and-constraints-profile.xml",
"errorCount": 4 "errorCount": 4
} }
}, },
"slicing-types-by-string.xml" : { "slicing-types-by-string.xml": {
"errorCount": 0, "errorCount": 0,
"profile" : { "profile": {
"source" : "slicing-types-by-string-profile.xml", "source": "slicing-types-by-string-profile.xml",
"errorCount": 0 "errorCount": 0
} }
}, },
"uk-nhs-pat.xml" : { "uk-nhs-pat.xml": {
"version" : "1.0", "version": "1.0",
"use-test" : false, "use-test": false,
"allowed-extension-domain" : "http://hl7.org/fhir/ccda/StructureDefinition/", "allowed-extension-domain": "http://hl7.org/fhir/ccda/StructureDefinition/",
"errorCount": 0, "errorCount": 0,
"profile" : { "profile": {
"source" : "uk-nhs-sd-pat.xml", "source": "uk-nhs-sd-pat.xml",
"errorCount": 1 "errorCount": 1
} }
}, },
"entry-resource-bad1.xml" : { "entry-resource-bad1.xml": {
"errorCount": 0, "errorCount": 0,
"x-errors": ["Resource ID does not match the ID in the entry full URL"] "x-errors": [
"Resource ID does not match the ID in the entry full URL"
]
}, },
"reference-good.xml" : { "reference-good.xml": {
"validate" : "CHECK_EXISTS_AND_TYPE", "validate": "CHECK_EXISTS_AND_TYPE",
"errorCount": 0 "errorCount": 0
}, },
"reference-bad.xml" : { "reference-bad.xml": {
"validate" : "CHECK_EXISTS_AND_TYPE", "validate": "CHECK_EXISTS_AND_TYPE",
"errorCount": 1 "errorCount": 1
}, },
"reference-good-contained.xml" : { "reference-good-contained.xml": {
"validate" : "CHECK_EXISTS_AND_TYPE", "validate": "CHECK_EXISTS_AND_TYPE",
"errorCount": 0 "errorCount": 0
}, },
"reference-good-typed.xml" : { "reference-good-typed.xml": {
"validate" : "CHECK_EXISTS_AND_TYPE", "validate": "CHECK_EXISTS_AND_TYPE",
"errorCount": 0 "errorCount": 0
}, },
"reference-good-logical.xml" : { "reference-good-logical.xml": {
"validate" : "CHECK_EXISTS_AND_TYPE", "validate": "CHECK_EXISTS_AND_TYPE",
"errorCount": 0 "errorCount": 0
}, },
"reference-bad-logical.xml" : { "reference-bad-logical.xml": {
"validate" : "CHECK_EXISTS_AND_TYPE", "validate": "CHECK_EXISTS_AND_TYPE",
"errorCount": 1 "errorCount": 1
}, },
"reference-bad-typed.xml" : { "reference-bad-typed.xml": {
"validate" : "CHECK_EXISTS_AND_TYPE", "validate": "CHECK_EXISTS_AND_TYPE",
"errorCount": 1 "errorCount": 1
}, },
"primitive-good-ws.xml" : { "primitive-good-ws.xml": {
"errorCount": 0, "errorCount": 0,
"warningCount": 1 "warningCount": 1
}, },
"qr.xml" : { "qr.xml": {
"questionnaire" : "q.xml", "questionnaire": "q.xml",
"errorCount": 2 "errorCount": 2
}, },
"patient-good.xml" : { "patient-good.xml": {
"errorCount": 0, "errorCount": 0,
"warningCount": 0 "warningCount": 0
}, },
"patient-lang1.xml" : { "patient-lang1.xml": {
"errorCount": 0, "errorCount": 0,
"warningCount": 1 "warningCount": 1
}, },
"patient-lang2.xml" : { "patient-lang2.xml": {
"errorCount": 0, "errorCount": 0,
"warningCount": 0 "warningCount": 0
}, },
"patient-lang3.xml" : { "patient-lang3.xml": {
"errorCount": 0, "errorCount": 0,
"warningCount": 1 "warningCount": 1
}, },
"patient-conform-profile.xml" : { "patient-lang3.xml": {
"errorCount": 0,
"warningCount": 1
},
"patient-patternidentifier-bad.xml": {
"errorCount": 0,
"profile": {
"source": "patient-patternidentifier-profile.xml",
"errorCount": 2,
"errors": [
"ERROR: Patient.identifier.type: Missing element \'type\'",
"ERROR: Patient.identifier.system: Value is \'urn:oid:2.16.756.5.30.999999.1.2\' but must be \'urn:oid:2.16.756.5.30.999999.1\'"
]
}
},
"patient-patternidentifier-badmultiple.xml": {
"errorCount": 0,
"profile": {
"source": "patient-patternidentifier-profile.xml",
"errorCount": 2,
"errors": [
"ERROR: Patient.identifier[2].type: Missing element \'type\'",
"ERROR: Patient.identifier[2].system: Value is \'urn:oid:2.16.756.5.30.999999.1.2\' but must be \'urn:oid:2.16.756.5.30.999999.1\'"
]
}
},
"patient-patternidentifier-good.xml": {
"errorCount": 0,
"profile": {
"source": "patient-patternidentifier-profile.xml",
"errorCount": 0
}
},
"patient-patternidentifier-profile.xml": {
"errorCount": 0
},
"patient-patternidentifierslice-bad.xml": {
"errorCount": 0,
"profile": {
"source": "patient-patternidentifierslice-profile.xml",
"errorCount": 1,
"errors": [
"ERROR: Patient.identifier.type: Missing element \'type\'",
"ERROR: Patient.identifier.system: Value is \'urn:oid:2.16.756.5.30.999999.1.2\' but must be \'urn:oid:2.16.756.5.30.999999.1\'"
]
}
},
"patient-patternidentifierslice-good.xml": {
"errorCount": 0,
"profile": {
"source": "patient-patternidentifierslice-profile.xml",
"errorCount": 0
}
},
"patient-patternidentifierslice-goodmultiple.xml": {
"errorCount": 0,
"profile": {
"source": "patient-patternidentifierslice-profile.xml",
"errorCount": 0
}
},
"patient-patternidentifierslice-profile.xml": {
"errorCount": 0
},
"patient-conform-profile.xml": {
"errorCount": 0, "errorCount": 0,
"warningCount": 0 "warningCount": 0
}, },
"patient-bad-gender.xml" : { "patient-bad-gender.xml": {
"errorCount": 1, "errorCount": 1,
"warningCount": 0, "warningCount": 0,
"profile" : { "profile": {
"source" : "patient-conform-profile.xml", "source": "patient-conform-profile.xml",
"errorCount": 2, "errorCount": 2,
"warningCount": 0 "warningCount": 0
} }
}, },
"patient-warning-maritalstatus.xml" : { "patient-warning-maritalstatus.xml": {
"errorCount": 0, "errorCount": 0,
"warningCount": 1, "warningCount": 1,
"profile" : { "profile": {
"source" : "patient-conform-profile.xml", "source": "patient-conform-profile.xml",
"errorCount": 0, "errorCount": 0,
"warningCount": 1 "warningCount": 1
} }
}, },
"document-good.xml" : { "document-good.xml": {
"errorCount": 0, "errorCount": 0,
"profiles" : ["document-section-library.xml"], "profiles": [
"profile" : { "document-section-library.xml"
"source" : "document-structure.xml", ],
"profile": {
"source": "document-structure.xml",
"errorCount": 0 "errorCount": 0
} }
}, },
"document-bad-no-sections.xml" : { "document-bad-no-sections.xml": {
"errorCount": 0, "errorCount": 0,
"profiles" : ["document-section-library.xml"], "profiles": [
"profile" : { "document-section-library.xml"
"source" : "document-structure.xml", ],
"profile": {
"source": "document-structure.xml",
"errorCount": 2 "errorCount": 2
} }
}, },
"document-bad-bad-sections.xml" : { "document-bad-bad-sections.xml": {
"errorCount": 0, "errorCount": 0,
"profiles" : ["document-section-library.xml"], "profiles": [
"profile" : { "document-section-library.xml"
"source" : "document-structure.xml", ],
"profile": {
"source": "document-structure.xml",
"errorCount": 3 "errorCount": 3
} }
}, },
"message-infinite-loop.xml" : { "message-infinite-loop.xml": {
"errorCount": 34 "errorCount": 34
}, },
"slice-profile-and-local-patient.xml" : { "slice-profile-and-local-patient.xml": {
"errorCount": 0, "errorCount": 0,
"profile" : { "profile": {
"source" : "slice-profile-and-local-profile.xml", "source": "slice-profile-and-local-profile.xml",
"errorCount": 0 "errorCount": 0
} }
}, },
"questionnaireResponse-enableWhen-test.xml" : { "questionnaireResponse-enableWhen-test.xml": {
"questionnaire" : "questionnaire-enableWhen-test.xml", "questionnaire": "questionnaire-enableWhen-test.xml",
"errorCount": 0 "errorCount": 0
}, },
"questionnaireResponse-enableWhen-test3.xml" : { "questionnaireResponse-enableWhen-test3.xml": {
"version" : "3.0", "version": "3.0",
"questionnaire" : "questionnaire-enableWhen-test3.xml", "questionnaire": "questionnaire-enableWhen-test3.xml",
"errorCount": 0 "errorCount": 0
}, },
"extension-slice.xml" : { "extension-slice.xml": {
"errorCount": 0, "errorCount": 0,
"profile" : { "profile": {
"source" : "extension-slice-profile.xml", "source": "extension-slice-profile.xml",
"errorCount": 0 "errorCount": 0
} }
}, },
"slice-by-polymorphic-type2.xml" : { "slice-by-polymorphic-type2.xml": {
"errorCount": 0, "errorCount": 0,
"profile" : { "profile": {
"source" : "slice-by-polymorphic-type2-profile.xml", "source": "slice-by-polymorphic-type2-profile.xml",
"errorCount": 0 "errorCount": 0
} }
}, },
"observation-bp-validationfails.xml" : { "observation-bp-validationfails.xml": {
"errorCount": 0 "errorCount": 0
}, },
"observation-bp.xml" : { "observation-bp.xml": {
"errorCount": 0, "errorCount": 0,
"profile" : { "profile": {
"source" : "observation-bp-profile.xml", "source": "observation-bp-profile.xml",
"errorCount": 0 "errorCount": 0
} }
}, },
"observation-bp-bad-onlydiastolic.xml" : { "observation-bp-bad-onlydiastolic.xml": {
"errorCount": 0, "errorCount": 0,
"profile" : { "profile": {
"source" : "observation-bp-profile.xml", "source": "observation-bp-profile.xml",
"errorCount": 1, "errorCount": 1,
"errors": [ "errors": [
"ERROR: Observation: Profile http://hl7.org/fhir/StructureDefinition/observation-bp-profile, Element 'Observation.component[SystolicBP]': minimum required = 1, but only found 0" "ERROR: Observation: Profile http://hl7.org/fhir/StructureDefinition/observation-bp-profile, Element 'Observation.component[SystolicBP]': minimum required = 1, but only found 0"
] ]
} }
}, },
"observation-bp-localcode.xml" : { "observation-bp-localcode.xml": {
"errorCount": 0, "errorCount": 0,
"profile" : { "profile": {
"source" : "observation-bp-profile-twocodesrequired.xml", "source": "observation-bp-profile-twocodesrequired.xml",
"errorCount": 0 "errorCount": 0
} }
}, },
"observation-cholesterol-good.xml" : { "observation-cholesterol-good.xml": {
"errorCount": 0 "errorCount": 0
}, },
"observation-cholesterol-bad-referencerangemissing.xml" : { "observation-cholesterol-bad-referencerangemissing.xml": {
"errorCount": 1, "errorCount": 1,
"errors": ["ERROR: Observation: Profile http://hl7.org/fhir/StructureDefinition/cholesterol, Element 'Observation.referenceRange': minimum required = 1, but only found 0"] "errors": [
"ERROR: Observation: Profile http://hl7.org/fhir/StructureDefinition/cholesterol, Element 'Observation.referenceRange': minimum required = 1, but only found 0"
]
}, },
"observation-cholesterol-bad-referencerangehighfixedquantitywrong.xml" : { "observation-cholesterol-bad-referencerangehighfixedquantitywrong.xml": {
"errorCount": 1, "errorCount": 1,
"errors": ["ERROR: Observation.referenceRange.high.value: Value is '0' but must be '4.5'"] "errors": [
"ERROR: Observation.referenceRange.high.value: Value is '0' but must be '4.5'"
]
}, },
"observation-cholesterol-bad-wrongcode.xml" : { "observation-cholesterol-bad-wrongcode.xml": {
"errorCount": 2, "errorCount": 2,
"errors": ["ERROR: Observation.code.coding.code: Value is '13457-7' but must be '35200-5'","ERROR: Observation.code.coding.display: Value is 'Cholesterol in LDL [Mass/volume] in Serum or Plasma by calculation' but must be 'Cholesterol [Moles/?volume] in Serum or Plasma'"] "errors": [
"ERROR: Observation.code.coding.code: Value is '13457-7' but must be '35200-5'",
"ERROR: Observation.code.coding.display: Value is 'Cholesterol in LDL [Mass/volume] in Serum or Plasma by calculation' but must be 'Cholesterol [Moles/?volume] in Serum or Plasma'"
]
}, },
"invariant.example.xml" : { "invariant.example.xml": {
"errorCount": 0, "errorCount": 0,
"profile" : { "profile": {
"source" : "invariant.profile.xml", "source": "invariant.profile.xml",
"errorCount": 1 "errorCount": 1
} }
}, },
"observation-triglyceride-good.xml" : { "observation-triglyceride-good.xml": {
"warningCount": 1, "warningCount": 1,
"errorCount": 0, "errorCount": 0,
"warnings": ["WARNING: Observation.code.coding[1]: The display \"Triglyceride [Moles/volume] in Serum or Plasma\" is not a valid display for the code {http://loinc.org}35217-9 - should be one of [\"Triglyceride [Mass or Moles/volume] in Serum or Plasma\",\"Trigl SerPl-msCnc\""] "warnings": [
"WARNING: Observation.code.coding[1]: The display \"Triglyceride [Moles/volume] in Serum or Plasma\" is not a valid display for the code {http://loinc.org}35217-9 - should be one of [\"Triglyceride [Mass or Moles/volume] in Serum or Plasma\",\"Trigl SerPl-msCnc\""
]
}, },
"observation-triglyceride-good2.xml" : { "observation-triglyceride-good2.xml": {
"warningCount": 1, "warningCount": 1,
"errorCount": 0, "errorCount": 0,
"warnings": ["WARNING: Observation.code.coding[2]: The display \"Triglyceride [Moles/volume] in Serum or Plasma\" is not a valid display for the code {http://loinc.org}35217-9 - should be one of [\"Triglyceride [Mass or Moles/volume] in Serum or Plasma\",\"Trigl SerPl-msCnc\""] "warnings": [
"WARNING: Observation.code.coding[2]: The display \"Triglyceride [Moles/volume] in Serum or Plasma\" is not a valid display for the code {http://loinc.org}35217-9 - should be one of [\"Triglyceride [Mass or Moles/volume] in Serum or Plasma\",\"Trigl SerPl-msCnc\""
]
}, },
"observation-triglyceride-bad-wrongcode.xml" : { "observation-triglyceride-bad-wrongcode.xml": {
"errorCount": 1, "errorCount": 1,
"errors": ["ERROR: Observation.code: Expected patternCodeableConcept not found for system: http://loinc.org code: 35217-9 display: Triglyceride [Moles/volume] in Serum or Plasma"] "errors": [
"ERROR: Observation.code: Expected patternCodeableConcept not found for system: http://loinc.org code: 35217-9 display: Triglyceride [Moles/volume] in Serum or Plasma"
]
}, },
"slicing-example-uk.xml" : { "slicing-example-uk.xml": {
"version" : "3.0", "version": "3.0",
"errorCount": 13, "errorCount": 13,
"allowed-extension-domains" : ["https://fhir.nhs.uk/STU3", "https://fhir.hl7.org.uk/STU3"], "allowed-extension-domains": [
"profile" : { "https://fhir.nhs.uk/STU3",
"source" : "slicing-example-uk.profile.xml", "https://fhir.hl7.org.uk/STU3"
],
"profile": {
"source": "slicing-example-uk.profile.xml",
"errorCount": 16 "errorCount": 16
} }
}, },
"patient-translated-codes.xml" : { "patient-translated-codes.xml": {
"errorCount": 0, "errorCount": 0,
"warningCount": 2, "warningCount": 2,
"profile" : { "profile": {
"source" : "patient-translated-codes.profile.xml", "source": "patient-translated-codes.profile.xml",
"errorCount": 0, "errorCount": 0,
"warningCount": 0 "warningCount": 0
}, },
"patient-contained-org.xml" : { "patient-contained-org.xml": {
"errorCount": 0, "errorCount": 0,
"profile" : { "profile": {
"source" : "patient-contained-org-profile.xml", "source": "patient-contained-org-profile.xml",
"errorCount": 1 "errorCount": 1
} }
} }

View File

@ -0,0 +1,12 @@
<Patient xmlns="http://hl7.org/fhir">
<id value="patient-patternidenitiferslice-bad"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml">
</div>
</text>
<identifier>
<system value="urn:oid:2.16.756.5.30.999999.1.2"/>
<value value="012/08.111111"/>
</identifier>
</Patient>

View File

@ -0,0 +1,22 @@
<Patient xmlns="http://hl7.org/fhir">
<id value="patient-patternidentifier-good"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml">
</div>
</text>
<identifier>
<type>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
<code value="MR" />
</coding>
</type>
<system value="urn:oid:2.16.756.5.30.999999.1"/>
<value value="012/08.111111"/>
</identifier>
<identifier>
<system value="urn:oid:2.16.756.5.30.999999.1.2"/>
<value value="012/08.111111"/>
</identifier>
</Patient>

View File

@ -0,0 +1,18 @@
<Patient xmlns="http://hl7.org/fhir">
<id value="patient-patternidentifier-good"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml">
</div>
</text>
<identifier>
<type>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
<code value="MR" />
</coding>
</type>
<system value="urn:oid:2.16.756.5.30.999999.1"/>
<value value="012/08.111111"/>
</identifier>
</Patient>

View File

@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>
<StructureDefinition xmlns="http://hl7.org/fhir">
<id value="patient-patternidentifier-profile" />
<url
value="http://hl7.org/fhir/StructureDefinition/patient-patternidentifier-profile" />
<name value="PatientConformProfile" />
<status value="draft" />
<description value="Test profile for patternIdentifier" />
<kind value="resource" />
<abstract value="false" />
<type value="Patient" />
<baseDefinition
value="http://hl7.org/fhir/StructureDefinition/Patient" />
<derivation value="constraint" />
<differential>
<element id="Patient">
<path value="Patient" />
</element>
<element id="Patient.identifier">
<path value="Patient.identifier" />
<short value="An identifier for this patient" />
<definition value="An identifier for this patient." />
<requirements
value="Patients are almost always assigned specific numerical identifiers." />
<min value="0" />
<max value="*" />
<base>
<path value="Patient.identifier" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Identifier" />
</type>
<patternIdentifier>
<type>
<coding>
<system
value="http://terminology.hl7.org/CodeSystem/v2-0203" />
<code value="MR" />
</coding>
</type>
<system value="urn:oid:2.16.756.5.30.999999.1" />
</patternIdentifier>
</element>
</differential>
</StructureDefinition>

View File

@ -0,0 +1,12 @@
<Patient xmlns="http://hl7.org/fhir">
<id value="patient-patternidenitifer-bad"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml">
</div>
</text>
<identifier>
<system value="urn:oid:2.16.756.5.30.999999.1.2"/>
<value value="012/08.111111"/>
</identifier>
</Patient>

View File

@ -0,0 +1,18 @@
<Patient xmlns="http://hl7.org/fhir">
<id value="patient-patternidentifier-good"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml">
</div>
</text>
<identifier>
<type>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
<code value="MR" />
</coding>
</type>
<system value="urn:oid:2.16.756.5.30.999999.1"/>
<value value="012/08.111111"/>
</identifier>
</Patient>

View File

@ -0,0 +1,22 @@
<Patient xmlns="http://hl7.org/fhir">
<id value="patient-patternidentifierslice-goodmultiple"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml">
</div>
</text>
<identifier>
<type>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
<code value="MR" />
</coding>
</type>
<system value="urn:oid:2.16.756.5.30.999999.1"/>
<value value="012/08.111111"/>
</identifier>
<identifier>
<system value="urn:oid:2.16.756.5.30.999999.1.2"/>
<value value="012/08.111111"/>
</identifier>
</Patient>

View File

@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>
<StructureDefinition xmlns="http://hl7.org/fhir">
<id value="patient-patternidentifierslice-profile" />
<url
value="http://hl7.org/fhir/StructureDefinition/patient-patternidentifier-profile" />
<name value="PatientConformProfile" />
<status value="draft" />
<description value="Test profile for slicing on Identifier with patternIdentifier" />
<kind value="resource" />
<abstract value="false" />
<type value="Patient" />
<baseDefinition
value="http://hl7.org/fhir/StructureDefinition/Patient" />
<derivation value="constraint" />
<differential>
<element id="Patient">
<path value="Patient" />
</element>
<element id="Patient.identifier">
<path value="Patient.identifier" />
<slicing>
<discriminator>
<type value="pattern" />
<path value="$this" />
</discriminator>
<rules value="open" />
</slicing>
</element>
<element id="Patient.identifier:MR">
<path value="Patient.identifier" />
<sliceName value="MR" />
<short value="An identifier for this patient" />
<definition value="An identifier for this patient." />
<min value="1" />
<max value="1" />
<patternIdentifier>
<type>
<coding>
<system
value="http://terminology.hl7.org/CodeSystem/v2-0203" />
<code value="MR" />
</coding>
</type>
<system value="urn:oid:2.16.756.5.30.999999.1" />
</patternIdentifier>
</element>
</differential>
</StructureDefinition>