diff --git a/validator/resolution/Organization-first.xml b/validator/resolution/Organization-first.xml new file mode 100644 index 00000000..85fce443 --- /dev/null +++ b/validator/resolution/Organization-first.xml @@ -0,0 +1,31 @@ + + + + + + +
+ +

Clinical Laboratory @ Acme Hospital. ph: +1 555 234 1234, email: + contact@labs.acme.org +

+ +
+
+ + + + + + + + + + + + + + + + +
\ No newline at end of file diff --git a/validator/resolution/Patient-example-newborn.json b/validator/resolution/Patient-example-newborn.json new file mode 100644 index 00000000..5cc3a35e --- /dev/null +++ b/validator/resolution/Patient-example-newborn.json @@ -0,0 +1,25 @@ +{ + "resourceType": "Patient", + "id": "newborn", + "text": { + "status": "generated", + "div": "

Generated Narrative with Details

id: newborn

gender: male

birthDate: 05/09/2017

multipleBirth: 2

" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName", + "valueString": "Everywoman" + } + ], + "gender": "male", + "birthDate": "2017-09-05", + "_birthDate": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthTime", + "valueDateTime": "2017-05-09T17:11:00+01:00" + } + ] + }, + "multipleBirthInteger": 2 +} \ No newline at end of file diff --git a/validator/resolution/StructureDefinition-Observation.json b/validator/resolution/StructureDefinition-Observation.json new file mode 100644 index 00000000..f15c9017 --- /dev/null +++ b/validator/resolution/StructureDefinition-Observation.json @@ -0,0 +1,28 @@ +{ + "resourceType": "StructureDefinition", + "id": "ObservationReference", + "url": "http://hl7.org/fhir/test/StructureDefinition/ObservationReference", + "name": "ObservationReference", + "title": "Observation Reference", + "status": "active", + "date": "2021-12-22T18:52:24+11:00", + "description": "Makes a rule on subject that requires Patient to be checked", + "fhirVersion": "4.0.1", + "kind": "resource", + "abstract": false, + "type": "Observation", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation", + "derivation": "constraint", + "differential": { + "element": [ + { + "id": "Observation.subject", + "path": "Observation.subject", + "type" : [{ + "code" : "Reference", + "targetProfile" : ["http://hl7.org/fhir/test/StructureDefinition/PatientRule"] + }] + } + ] + } +} \ No newline at end of file diff --git a/validator/resolution/StructureDefinition-Patient.json b/validator/resolution/StructureDefinition-Patient.json new file mode 100644 index 00000000..8e8d88e8 --- /dev/null +++ b/validator/resolution/StructureDefinition-Patient.json @@ -0,0 +1,25 @@ +{ + "resourceType": "StructureDefinition", + "id": "PatientRule", + "url": "http://hl7.org/fhir/test/StructureDefinition/PatientRule", + "version": "0.1.0", + "title": "Patient Rule", + "status": "active", + "date": "2021-12-22T18:52:24+11:00", + "description": "Makes a rule about patient that has to be tested by fetching the resource. R4 patient-example meeds the rule, Patient-example-newborn does not", + "fhirVersion": "4.0.1", + "kind": "resource", + "abstract": false, + "type": "Patient", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient", + "derivation": "constraint", + "differential": { + "element": [ + { + "id": "Patient.active", + "path": "Patient.active", + "min" : 1 + } + ] + } +} \ No newline at end of file diff --git a/validator/resolution/absolute-url-error.json b/validator/resolution/absolute-url-error.json new file mode 100644 index 00000000..e61adecc --- /dev/null +++ b/validator/resolution/absolute-url-error.json @@ -0,0 +1,13 @@ +{ + "resourceType" : "Observation", + "meta" : { + "profile" : ["http://hl7.org/fhir/test/StructureDefinition/ObservationReference"] + }, + "status" : "final", + "code" : { + "text" : "nothing" + }, + "subject" : { + "reference" : "http://hl7x.org/fhir/R4/Patient/Patient/example-newborn" + } +} \ No newline at end of file diff --git a/validator/resolution/absolute-url-invalid.json b/validator/resolution/absolute-url-invalid.json new file mode 100644 index 00000000..b0d5038b --- /dev/null +++ b/validator/resolution/absolute-url-invalid.json @@ -0,0 +1,13 @@ +{ + "resourceType" : "Observation", + "meta" : { + "profile" : ["http://hl7.org/fhir/test/StructureDefinition/ObservationReference"] + }, + "status" : "final", + "code" : { + "text" : "nothing" + }, + "subject" : { + "reference" : "https://hl7.org/fhir/R4/patient-example-newborn.json" + } +} \ No newline at end of file diff --git a/validator/resolution/absolute-url-valid.json b/validator/resolution/absolute-url-valid.json new file mode 100644 index 00000000..2f87ca79 --- /dev/null +++ b/validator/resolution/absolute-url-valid.json @@ -0,0 +1,13 @@ +{ + "resourceType" : "Observation", + "meta" : { + "profile" : ["http://hl7.org/fhir/test/StructureDefinition/ObservationReference"] + }, + "status" : "final", + "code" : { + "text" : "nothing" + }, + "subject" : { + "reference" : "https://hl7.org/fhir/R4/patient-example.json" + } +} \ No newline at end of file diff --git a/validator/resolution/patient-example.json b/validator/resolution/patient-example.json new file mode 100644 index 00000000..6045b9bf --- /dev/null +++ b/validator/resolution/patient-example.json @@ -0,0 +1,165 @@ +{ + "resourceType": "Patient", + "id": "example", + "text": { + "status": "generated", + "div": "
\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t
NamePeter James \n Chalmers ("Jim")\n
Address534 Erewhon, Pleasantville, Vic, 3999
ContactsHome: unknown. Work: (03) 5555 6473
IdMRN: 12345 (Acme Healthcare)
\n\t\t
" + }, + "identifier": [ + { + "use": "usual", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "MR" + } + ] + }, + "system": "urn:oid:1.2.36.146.595.217.0.1", + "value": "12345", + "period": { + "start": "2001-05-06" + }, + "assigner": { + "display": "Acme Healthcare" + } + } + ], + "active": true, + "name": [ + { + "use": "official", + "family": "Chalmers", + "given": [ + "Peter", + "James" + ] + }, + { + "use": "usual", + "given": [ + "Jim" + ] + }, + { + "use": "maiden", + "family": "Windsor", + "given": [ + "Peter", + "James" + ], + "period": { + "end": "2002" + } + } + ], + "telecom": [ + { + "use": "home" + }, + { + "system": "phone", + "value": "(03) 5555 6473", + "use": "work", + "rank": 1 + }, + { + "system": "phone", + "value": "(03) 3410 5613", + "use": "mobile", + "rank": 2 + }, + { + "system": "phone", + "value": "(03) 5555 8834", + "use": "old", + "period": { + "end": "2014" + } + } + ], + "gender": "male", + "birthDate": "1974-12-25", + "_birthDate": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthTime", + "valueDateTime": "1974-12-25T14:35:45-05:00" + } + ] + }, + "deceasedBoolean": false, + "address": [ + { + "use": "home", + "type": "both", + "text": "534 Erewhon St PeasantVille, Rainbow, Vic 3999", + "line": [ + "534 Erewhon St" + ], + "city": "PleasantVille", + "district": "Rainbow", + "state": "Vic", + "postalCode": "3999", + "period": { + "start": "1974-12-25" + } + } + ], + "contact": [ + { + "relationship": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0131", + "code": "N" + } + ] + } + ], + "name": { + "family": "du Marché", + "_family": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/humanname-own-prefix", + "valueString": "VV" + } + ] + }, + "given": [ + "Bénédicte" + ] + }, + "telecom": [ + { + "system": "phone", + "value": "+33 (237) 998327" + } + ], + "address": { + "use": "home", + "type": "both", + "line": [ + "534 Erewhon St" + ], + "city": "PleasantVille", + "district": "Rainbow", + "state": "Vic", + "postalCode": "3999", + "period": { + "start": "1974-12-25" + } + }, + "gender": "female", + "period": { + "start": "2012" + } + } + ], + "managingOrganization": { + "reference": "Organization/1" + } +} \ No newline at end of file diff --git a/validator/resolution/relative-url-error.json b/validator/resolution/relative-url-error.json new file mode 100644 index 00000000..dabcc924 --- /dev/null +++ b/validator/resolution/relative-url-error.json @@ -0,0 +1,13 @@ +{ + "resourceType" : "Observation", + "meta" : { + "profile" : ["http://hl7.org/fhir/test/StructureDefinition/ObservationReference"] + }, + "status" : "final", + "code" : { + "text" : "nothing" + }, + "subject" : { + "reference" : "patient/example-newborn-x" + } +} \ No newline at end of file diff --git a/validator/resolution/relative-url-invalid.json b/validator/resolution/relative-url-invalid.json new file mode 100644 index 00000000..e789bdfc --- /dev/null +++ b/validator/resolution/relative-url-invalid.json @@ -0,0 +1,13 @@ +{ + "resourceType" : "Observation", + "meta" : { + "profile" : ["http://hl7.org/fhir/test/StructureDefinition/ObservationReference"] + }, + "status" : "final", + "code" : { + "text" : "nothing" + }, + "subject" : { + "reference" : "Patient/example-newborn" + } +} \ No newline at end of file diff --git a/validator/resolution/relative-url-valid.json b/validator/resolution/relative-url-valid.json new file mode 100644 index 00000000..255c2eb8 --- /dev/null +++ b/validator/resolution/relative-url-valid.json @@ -0,0 +1,13 @@ +{ + "resourceType" : "Observation", + "meta" : { + "profile" : ["http://hl7.org/fhir/test/StructureDefinition/ObservationReference"] + }, + "status" : "final", + "code" : { + "text" : "nothing" + }, + "subject" : { + "reference" : "Patient/example" + } +} \ No newline at end of file