-
Notifications
You must be signed in to change notification settings - Fork 5
/
ex-ProvideBundles2.fsh
130 lines (113 loc) · 6.14 KB
/
ex-ProvideBundles2.fsh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
// Simple PUSH style ITI-65, with a intended recipient email, one DocumentReference and the Document, using sourcePatientInfo
Instance: ex-response-minimalProvideDocumentBundleSimpleContained
InstanceOf: IHE.MHD.ProvideDocumentBundleResponse
Title: "Response to Provide Document Bundle with Minimal metadata of one document with sourcePatientInfo"
Description: """
Response bundle example given ex-minimalProvideDocumentBundleSimpleContained
- for every entry in order given
- successful create of SubmissionSet
- successful create of DocumentReference
- successful create of Binary
"""
Usage: #example
* meta.security = http://terminology.hl7.org/CodeSystem/v3-ActReason#HTEST
* type = #transaction-response
* link[0].relation = "self"
* link[0].url = "http://example.com/fhir"
* entry[+].response.status = "201 Created"
* entry[=].response.location = "List/1"
* entry[=].response.lastModified = "2020-10-02T11:56:15.094+00:00"
* entry[+].response.status = "201 Created"
* entry[=].response.location = "DocumentReference/1"
* entry[=].response.lastModified = "2020-10-02T11:56:15.095+00:00"
* entry[+].response.status = "201 Created"
* entry[=].response.location = "Binary/1"
* entry[=].response.lastModified = "2020-10-02T11:56:15.096+00:00"
Instance: ex-minimalProvideDocumentBundleSimpleContained
InstanceOf: IHE.MHD.Minimal.ProvideBundle
Title: "Provide Document Bundle with Minimal metadata of one document with sourcePatientInfo"
Description: "Example of a minimal Provide Document Bundle for a push to an email intended recipient.
- The bundle contains
- SubmissionSet - identifies to whom this is going and one documentReference
- DocumentReference - One DocumentReference
- Binary - the document
- the Patient is contained in the DocumentReference. This would be more classic XDR/XDM model. Note there is no mention of the patient in the SubmissionSet in this case (hence minimal metadata), and if multiple documents were sent they would implicitly be the same patient, presumably with the same contained Patient; but given it is a contained Patinet there is no way to computably prove this beyond exact comparison of the contained object."
Usage: #example
* meta.security = http://terminology.hl7.org/CodeSystem/v3-ActReason#HTEST
* type = #transaction
* timestamp = 2004-10-25T23:50:50-05:00
* entry[SubmissionSet].fullUrl = "urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00222200001"
* entry[SubmissionSet].resource = aaaaaaaa-bbbb-cccc-dddd-e00222200001
* entry[SubmissionSet].request.url = "List"
* entry[SubmissionSet].request.method = #POST
* entry[DocumentRefs].fullUrl = "urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00222200002"
* entry[DocumentRefs].resource = aaaaaaaa-bbbb-cccc-dddd-e00222200002
* entry[DocumentRefs].request.url = "DocumentReference"
* entry[DocumentRefs].request.method = #POST
* entry[Documents].fullUrl = "urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00222200003"
* entry[Documents].resource = aaaaaaaa-bbbb-cccc-dddd-e00222200003
* entry[Documents].request.url = "Binary"
* entry[Documents].request.method = #POST
Instance: aaaaaaaa-bbbb-cccc-dddd-e00222200004
InstanceOf: Patient
Title: "Dummy Patient example"
Description: "Dummy patient for push scenario, carried in containment. Note that this Patient is not likely to meet recipient policy for matching, matching is a policy."
Usage: #inline
* name[+].family = "Schmidt"
* name[=].given = "Dee"
Instance: in-practitioner2
InstanceOf: Practitioner
Title: "Intended Practitioner Recipient example"
Description: "a Practitioner identified only as an email address, carried as a contained resoruce."
Usage: #inline
* telecom.system = #email
* telecom.value = "JohnMoehrke@gmail.com"
Instance: aaaaaaaa-bbbb-cccc-dddd-e00222200001
InstanceOf: IHE.MHD.Minimal.SubmissionSet
Title: "SubmissionSet for Minimal metadata in a bundle"
Description: "Example of a minimal submissionSet in List resource with an intended recipient used in a bundle."
Usage: #inline
* text.status = #extensions
* text.div = "<div xmlns=\"http://www.w3.org/1999/xhtml\">SubmissionSet with Patient</div>"
* meta.security = http://terminology.hl7.org/CodeSystem/v3-ActReason#HTEST
* identifier[uniqueId].system = "urn:ietf:rfc:3986"
* identifier[uniqueId].value = "urn:oid:1.2.840.113556.1.8000.2554.58783.21864.3474.19410.44358.58254.41281.46344"
* identifier[uniqueId].use = #usual
* status = #current
* mode = #working
* code = MHDlistTypes#submissionset
* date = 2004-10-25T23:50:50-05:00
* entry[+].item = Reference(urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00222200002)
* extension[sourceId].valueIdentifier.value = "urn:oid:1.2.3.4"
* contained[+] = in-practitioner
* extension[intendedRecipient].valueReference = Reference(in-practitioner)
Instance: aaaaaaaa-bbbb-cccc-dddd-e00222200002
InstanceOf: IHE.MHD.Minimal.DocumentReference
Title: "DocumentReference for Minimal metadata"
Description: "Example of a minimal DocumentReference resource being used in a PUSH. This contains only the sourcePatientInfo, thus equivilant of XDR/XDM use of sourcePatientInfo."
Usage: #inline
* meta.security = http://terminology.hl7.org/CodeSystem/v3-ActReason#HTEST
* masterIdentifier.system = "urn:ietf:rfc:3986"
* masterIdentifier.value = "urn:oid:1.2.840.113556.1.8000.2554.53432.348.12973.17740.34205.4355.50220.62012"
* status = #current
* contained[+] = aaaaaaaa-bbbb-cccc-dddd-e00222200004
* context.sourcePatientInfo = Reference(aaaaaaaa-bbbb-cccc-dddd-e00222200004)
* content.format = http://ihe.net/fhir/ihe.formatcode.fhir/CodeSystem/formatcode#urn:ihe:iti:xds-sd:text:2008
* content.attachment.url = "urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00222200003"
* content.attachment.contentType = #text/plain
* content.attachment.hash = "MGE0ZDU1YThkNzc4ZTUwMjJmYWI3MDE5NzdjNWQ4NDBiYmM0ODZkMA=="
* content.attachment.size = 11
Instance: aaaaaaaa-bbbb-cccc-dddd-e00222200003
InstanceOf: Binary
Title: "Dummy Binary document that says: Hello World"
Description: """
For Bundling Example binary that
- holds \"Hello World\"
- size 11
- hash 0a4d55a8d778e5022fab701977c5d840bbc486d0
- base64 of the hash MGE0ZDU1YThkNzc4ZTUwMjJmYWI3MDE5NzdjNWQ4NDBiYmM0ODZkMA==
"""
Usage: #inline
* meta.security = http://terminology.hl7.org/CodeSystem/v3-ActReason#HTEST
* contentType = #text/plain
* data = "SGVsbG8gV29ybGQ="