-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix UnsupportedOperationException while validating MHD Document Bundle
- Loading branch information
Showing
4 changed files
with
221 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
190 changes: 190 additions & 0 deletions
190
hapi-fhir-validation/src/test/resources/r4/mhd_minimal_provide_document_bundle.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,190 @@ | ||
{ | ||
"resourceType": "Bundle", | ||
"meta": { | ||
"profile": [ | ||
"https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.ProvideBundle" | ||
], | ||
"security": [ | ||
{ | ||
"system": "http://terminology.hl7.org/CodeSystem/v3-ActReason", | ||
"code": "HTEST" | ||
} | ||
] | ||
}, | ||
"type": "transaction", | ||
"timestamp": "2024-05-11T14:16:19.224Z", | ||
"entry": [ | ||
{ | ||
"fullUrl": "urn:uuid:9649cc3d-eb0b-407b-b1ba-61c4eef4dba3", | ||
"resource": { | ||
"resourceType": "List", | ||
"id": "9649cc3d-eb0b-407b-b1ba-61c4eef4dba3", | ||
"meta": { | ||
"profile": [ | ||
"https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.SubmissionSet" | ||
], | ||
"security": [ | ||
{ | ||
"system": "http://terminology.hl7.org/CodeSystem/v3-ActReason", | ||
"code": "HTEST" | ||
} | ||
] | ||
}, | ||
"text": { | ||
"status": "extensions", | ||
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">SubmissionSet with Patient</div>" | ||
}, | ||
"contained": [ | ||
{ | ||
"resourceType": "Practitioner", | ||
"id": "622209e6-32ad-4283-b4eb-e2bea2aea856", | ||
"telecom": [ | ||
{ | ||
"system": "email", | ||
"value": "john.doe@localhost" | ||
} | ||
] | ||
} | ||
], | ||
"extension": [ | ||
{ | ||
"url": "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-sourceId", | ||
"valueIdentifier": { | ||
"value": "urn:oid:1.2.3.4" | ||
} | ||
}, | ||
{ | ||
"url": "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-intendedRecipient", | ||
"valueReference": { | ||
"reference": "#622209e6-32ad-4283-b4eb-e2bea2aea856" | ||
} | ||
} | ||
], | ||
"identifier": [ | ||
{ | ||
"use": "usual", | ||
"system": "urn:ietf:rfc:3986", | ||
"value": "urn:oid:1.2.840.113556.1.8000.2554.58783.21864.3474.19410.44358.58254.41281.46343" | ||
} | ||
], | ||
"status": "current", | ||
"mode": "working", | ||
"code": { | ||
"coding": [ | ||
{ | ||
"system": "https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes", | ||
"code": "submissionset" | ||
} | ||
] | ||
}, | ||
"subject": { | ||
"reference": "urn:uuid:51eb4fab-9d1a-4314-ad7c-363fc430f52c" | ||
}, | ||
"date": "2004-10-25T23:50:50-05:00", | ||
"entry": [ | ||
{ | ||
"item": { | ||
"reference": "urn:uuid:f494ac72-be69-4910-baf4-0cce4a45e7c1" | ||
} | ||
} | ||
] | ||
}, | ||
"request": { | ||
"method": "POST", | ||
"url": "List" | ||
} | ||
}, | ||
{ | ||
"fullUrl": "urn:uuid:f494ac72-be69-4910-baf4-0cce4a45e7c1", | ||
"resource": { | ||
"resourceType": "DocumentReference", | ||
"id": "f494ac72-be69-4910-baf4-0cce4a45e7c1", | ||
"meta": { | ||
"profile": [ | ||
"https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.DocumentReference" | ||
], | ||
"security": [ | ||
{ | ||
"system": "http://terminology.hl7.org/CodeSystem/v3-ActReason", | ||
"code": "HTEST" | ||
} | ||
] | ||
}, | ||
"masterIdentifier": { | ||
"system": "urn:ietf:rfc:3986", | ||
"value": "urn:oid:1.2.840.113556.1.8000.2554.53432.348.12973.17740.34205.4355.50220.62012" | ||
}, | ||
"status": "current", | ||
"subject": { | ||
"reference": "urn:uuid:51eb4fab-9d1a-4314-ad7c-363fc430f52c" | ||
}, | ||
"content": [ | ||
{ | ||
"attachment": { | ||
"contentType": "text/plain", | ||
"url": "urn:uuid:4d14267b-19ff-4237-a301-4cdcfd67d4f9", | ||
"size": 11, | ||
"hash": "MGE0ZDU1YThkNzc4ZTUwMjJmYWI3MDE5NzdjNWQ4NDBiYmM0ODZkMA==" | ||
}, | ||
"format": { | ||
"system": "http://ihe.net/fhir/ihe.formatcode.fhir/CodeSystem/formatcode", | ||
"code": "urn:ihe:iti:xds-sd:text:2008" | ||
} | ||
} | ||
] | ||
}, | ||
"request": { | ||
"method": "POST", | ||
"url": "DocumentReference" | ||
} | ||
}, | ||
{ | ||
"fullUrl": "urn:uuid:4d14267b-19ff-4237-a301-4cdcfd67d4f9", | ||
"resource": { | ||
"resourceType": "Binary", | ||
"id": "4d14267b-19ff-4237-a301-4cdcfd67d4f9", | ||
"meta": { | ||
"security": [ | ||
{ | ||
"system": "http://terminology.hl7.org/CodeSystem/v3-ActReason", | ||
"code": "HTEST" | ||
} | ||
] | ||
}, | ||
"contentType": "text/plain", | ||
"data": "SGVsbG8gV29ybGQ=" | ||
}, | ||
"request": { | ||
"method": "POST", | ||
"url": "Binary" | ||
} | ||
}, | ||
{ | ||
"fullUrl": "urn:uuid:51eb4fab-9d1a-4314-ad7c-363fc430f52c", | ||
"resource": { | ||
"resourceType": "Patient", | ||
"id": "51eb4fab-9d1a-4314-ad7c-363fc430f52c", | ||
"meta": { | ||
"security": [ | ||
{ | ||
"system": "http://terminology.hl7.org/CodeSystem/v3-ActReason", | ||
"code": "HTEST" | ||
} | ||
] | ||
}, | ||
"name": [ | ||
{ | ||
"family": "Schmidt", | ||
"given": [ | ||
"Dee" | ||
] | ||
} | ||
] | ||
}, | ||
"request": { | ||
"method": "POST", | ||
"url": "Patient" | ||
} | ||
} | ||
] | ||
} |