-
Notifications
You must be signed in to change notification settings - Fork 5
/
examples.http
153 lines (130 loc) · 3.74 KB
/
examples.http
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
@host = http://test.ahdis.ch/fhir
GET {{host}}/metadata HTTP/1.1
Accept: application/fhir+json
############ Register Patient Data ############
### ITI-104 Mobile Patient Identity Feed
PUT http://example.org/fhir/Patient?identifier=urn:oid:2.16.756.888888.3.1|8734 HTTP/1.1
Accept: application/fhir+json
Content-Type: application/fhir+json
{
"resourceType" : "Patient",
"identifier" : [
{
"type" : {
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/v2-0203",
"code" : "MR"
}
]
},
"system" : "urn:oid:2.16.756.888888.3.1",
"value" : "8734"
}
],
"name" : [
{
"family" : "Muster",
"given" : [
"Franz"
]
},
{
"family" : "Muster",
"_family" : {
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier",
"valueCode" : "BR"
}
]
}
}
],
"gender" : "male",
"birthDate" : "1995-01-27",
"managingOrganization" : {
"identifier" : {
"system" : "urn:oid:2.51.1.3",
"value" : "7601000201041"
}
}
}
############ Submit Document (Patient MAG-002) ############
### ITI-83 Mobile Patient Identifier Cross-Reference Query (PIXm)
### sourceIdentifier: AssigningAuthority|PatientLocalId
### targetSystem: AssigningAuthority (MPI-PID)
GET {{host}}/Patient/$ihe-pix?sourceIdentifier=urn:oid:1.3.6.1.4.1.21367.2017.2.7.109|localpid&targetSystem=urn:oid:1.3.6.1.4.1.21367.2017.2.5.83 HTTP/1.1
Accept: application/fhir+json
Content-Type: application/fhir+json
### Response: targetId = Patient/1.3.6.1.4.1.21367.2017.2.5.83-MAG-002
### ITI-65 Request (MHD: Provide Document Bundle)
### Patient: subject reference (DocumentReference & List) from PIXm Query= http://test.ahdis.ch/fhir/Patient/1.3.6.1.4.1.21367.2017.2.5.83-MAG-002
### Note for testing: When submitting a bundle, increase the masterIdentifier (DocumentReference & List)
POST {{host}}/ HTTP/1.1
Accept: application/fhir+json
Content-Type: application/fhir+json
< ./test/MAG-002_BundleProvideDocument.json
### Response: MAG-002_Response-ITI-65.json
### ITI-67 Request (MHD: Find Document References)
GET {{host}}/DocumentReference?status=current&patient.identifier=urn:oid:1.3.6.1.4.1.21367.2017.2.5.83|MAG-002 HTTP/1.1
Accept: application/fhir+json
Content-Type: application/fhir+json
### Response: MAG-002_Response-ITI-67.json
### ITI-68 Request (MHD: Retrieve Document -> Medication Card document (CDA))
### DocumentReference.content.attachment.url from Find Document Reference
GET http://test.ahdis.ch/camel/xdsretrieve?uniqueId=1.3.6.1.4.1.12559.11.13.2.1.3008&repositoryUniqueId=1.1.4567332.1.2
Accept: application/fhir+json
###
GET https://hapi.fhir.org/baseR4/Patient?name=Muster&birthdate=1995-01-27
###
PUT https://hapi.fhir.org/baseR4/Patient/FranzMuster HTTP/1.1
Content-Type: application/fhir+json
Accept: application/fhir+json
{
"resourceType": "Patient",
"id": "FranzMuster",
"meta": {
"profile": [
"http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/ch-pixm-patient"
]
},
"identifier": [
{
"system": "urn:oid:2.999.5.6.7",
"value": "value of MPI-PID"
},
{
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0203",
"code": "MR"
}
]
},
"system": "urn:oid:2.16.756.888888.3.1",
"value": "8734"
},
{
"system": "urn:oid:2.16.756.5.30.1.127.3.10.3",
"value": "761337610411353650"
}
],
"name": [
{
"family": "Muster",
"given": [
"Franz"
]
}
],
"gender": "male",
"birthDate": "1995-01-27",
"managingOrganization": {
"identifier": {
"system": "urn:oid:2.51.1.3",
"value": "7601000201041"
}
}
}