forked from hl7-fhir/fhir-dstu1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest-cases.xml
185 lines (183 loc) · 6.08 KB
/
test-cases.xml
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<?xml version="1.0" encoding="UTF-8"?>
<!--
This XML file includes a set of resources that test out difficult cases
for servers to handle as part of a batch post
--><feed xmlns="http://www.w3.org/2005/Atom" xmlns:gd="http://schemas.google.com/g/2005" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/2005/Atom ../../schema/fhir-atom.xsd">
<title>FHIR Test Cases</title>
<id>urn:uuid:b248b1b2-1686-4b94-9936-37d7a5f94b51</id>
<link rel="self" href="http://www.hl7.org/fhir/test-cases.xml"/>
<updated>2012-11-12T18:10:00Z</updated>
<!--
the first pair of entries is a simple person resource, followed by
the provenance for the resource. The provenance identifies the
resource by its randomly chosen identifier. The server has to reidentify
both the resources, and update the reference from the provenance resource
to the person resource (and fill out the version)
-->
<entry>
<title>test person</title>
<id>http://www.healthintersections.com.au/fhir/trash/person/@1</id>
<link rel="self" href="http://www.hl7.org/fhir/test-cases.xml#1"/>
<updated>2012-11-12T18:10:00Z</updated>
<author>
<name>Grahame Grieve</name>
</author>
<category term="Person" scheme="http://hl7.org/fhir/resource-types"/>
<content type="text/xml">
<Person xmlns="http://hl7.org/fhir" xmlns:xhtml="http://www.w3.org/1999/xhtml">
<text>
<status value="generated"/>
<xhtml:div>
<xhtml:p>Henry Levin</xhtml:p>
</xhtml:div>
</text>
<name>
<family value="Levin"/>
<given value="Henry"/>
</name>
<gender>
<coding>
<system value="urn:oid:2.16.840.1.113883.5.1"/>
<code value="M"/>
</coding>
</gender>
<birthDate value="1932-09-24"/>
</Person>
</content>
<summary type="xhtml">
<xhtml:div xmlns:xhtml="http://www.w3.org/1999/xhtml">Enter Ellen, ElleSSN: 333777777</xhtml:div>
</summary>
</entry>
<entry>
<title>test person provenance</title>
<id>http://www.healthintersections.com.au/fhir/trash/Provenance/1</id>
<link rel="self" href="http://www.hl7.org/fhir/test-cases.xml#2"/>
<updated>2012-11-12T18:12:00Z</updated>
<author>
<name>Grahame Grieve</name>
</author>
<category term="Person" scheme="http://hl7.org/fhir/resource-types"/>
<content type="text/xml">
<Provenance xmlns="http://hl7.org/fhir">
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml">Authored on 12-Nov 2011 by Grahame Grieve</div>
</text>
<target>
<value value="http://www.healthintersections.com.au/fhir/trash/person/@1"/>
</target>
<!-- nominal activity: editing the standard -->
<activity>
<recorded value="2012-11-12T18:16:00Z"/>
</activity>
<!-- author -->
<party>
<type>
<system value="http://hl7.org/fhir/provenance-participant-type"/>
<code value="person"/>
</type>
<value value="mailto:[email protected]"/>
<role>
<system value="http://hl7.org/fhir/provenance-participant-role"/>
<code value="author"/>
</role>
</party>
</Provenance>
</content>
<summary type="xhtml">
<xhtml:div xmlns:xhtml="http://www.w3.org/1999/xhtml">Enter Ellen, ElleSSN: 333777777</xhtml:div>
</summary>
</entry>
<!--
For reference, here is an acceptable response from the server. actual dates, times, urls and ids will vary accordingly
<feed xmlns="http://www.w3.org/2005/Atom">
<title>batch results</title>
<updated>2012-11-12T10:29:55+11:00</updated>
<id>urn:uuid:857b40e4-90cf-4425-9899-b0091aa60e</id>
<link rel="self" href=""/>
<entry>
<title>Resource "1"</title>
<link rel="self" href="http://localhost:9556/svc/fhir/@1/history/1"/>
<source>
<id>http://www.healthintersections.com.au/fhir/trash/person/@1</id>
</source>
<id>http://localhost:9556/svc/fhir/@1</id>
<updated>2012-11-12T10:29:55+11:00</updated>
<published>2012-11-12T10:29:55+11:00</published>
<author>
<name>Grahame Grieve</name>
</author>
<category term="Person" scheme="http://hl7.org/fhir/resource-types"/>
<content type="text/xml; charset=UTF-8">
<Person xmlns="http://hl7.org/fhir">
<name>
<family>Levin</family>
<given>Henry</given>
</name>
<gender>
<coding>
<system>urn:oid:2.16.840.1.113883.5.1</system>
<code>M</code>
</coding>
</gender>
<birthDate>1932-09-24</birthDate>
<text>
<status>generated</status>
<div xmlns="http://www.w3.org/1999/xhtml">
<p>Henry Levin</p>
</div>
</text>
</Person>
</content>
<summary type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<p>Henry Levin</p>
</div>
</summary>
</entry>
<entry>
<title>Resource "1"</title>
<link rel="self" href="http://localhost:9556/svc/fhir/@1/history/1"/>
<source>
<id>http://www.healthintersections.com.au/fhir/trash/Provenance/1</id>
</source>
<id>http://localhost:9556/svc/fhir/@1</id>
<updated>2012-11-12T10:29:55+11:00</updated>
<published>2012-11-12T10:29:55+11:00</published>
<author>
<name>Grahame Grieve</name>
</author>
<category term="Provenance" scheme="http://hl7.org/fhir/resource-types"/>
<content type="text/xml; charset=UTF-8">
<Provenance xmlns="http://hl7.org/fhir">
<target>
<type>Patient</type>
<id>1</id>
</target>
<activity>
<recorded>2012-11-12T18:16:00+11:00</recorded>
</activity>
<party>
<type>
<system>http://hl7.org/fhir/provenance-participant-type</system>
<code>person</code>
</type>
<id>mailto:[email protected]</id>
<role>
<system>http://hl7.org/fhir/provenance-participant-role</system>
<code>author</code>
</role>
</party>
<text>
<status>generated</status>
<div xmlns="http://www.w3.org/1999/xhtml">Authored on 12-Nov 2011 by Grahame Grieve</div>
</text>
</Provenance>
</content>
<summary type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">Authored on 12-Nov 2011 by Grahame Grieve</div>
</summary>
</entry>
</feed>
-->
</feed>