plan_executor 1.0.2 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (420) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.travis.yml +3 -2
  4. data/Gemfile +3 -6
  5. data/Gemfile.lock +52 -48
  6. data/README.md +2 -2
  7. data/fixtures/attachment/ccda_pdf.pdf +0 -0
  8. data/fixtures/attachment/ccda_pdf_base64.txt +2489 -0
  9. data/fixtures/attachment/ccda_structured.xml +1976 -0
  10. data/fixtures/attachment/ccda_unstructured.xml +2563 -0
  11. data/fixtures/daf/conformance-daf-query-responder.xml +2024 -193
  12. data/fixtures/diagnostic_report/diagnosticreport-familyhistory-create.xml +67 -0
  13. data/fixtures/diagnostic_report/diagnosticreport-hlatyping-create.xml +64 -0
  14. data/fixtures/diagnostic_report/diagnosticreport-pathologyreport-create.xml +312 -0
  15. data/fixtures/diagnostic_report/dr-100.xml +3 -3
  16. data/fixtures/diagnostic_report/dr-200.xml +5 -5
  17. data/fixtures/diagnostic_report/dr-300.xml +3 -3
  18. data/fixtures/diagnostic_report/dr-400.xml +3 -3
  19. data/fixtures/{diagnostic_order → diagnostic_request}/do-100.xml +57 -64
  20. data/fixtures/diagnostic_request/do-200.xml +73 -0
  21. data/fixtures/{diagnostic_order → diagnostic_request}/do-300.xml +73 -91
  22. data/{lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/DiagnosticOrder → fixtures/diagnostic_request}/do-400.xml +74 -88
  23. data/fixtures/family_member_history/familymemberhistory-familyhistory-create.xml +27 -0
  24. data/fixtures/financial/claim-example-oral-average.xml +199 -0
  25. data/fixtures/financial/claim-example-oral-orthoplan.xml +298 -0
  26. data/fixtures/financial/claim-example.xml +98 -0
  27. data/fixtures/financial/eligibilityrequest-example.xml +40 -0
  28. data/fixtures/observation/obs-401.xml +7 -17
  29. data/fixtures/observation/obs-402.xml +7 -17
  30. data/fixtures/observation/obs-403.xml +4 -29
  31. data/fixtures/observation/obs-407.xml +4 -11
  32. data/fixtures/observation/observation-datawarehouse-create.xml +72 -0
  33. data/fixtures/observation/observation-familyhistory-create.xml +61 -0
  34. data/fixtures/observation/observation-germline-create.xml +72 -0
  35. data/fixtures/observation/observation-register-create.xml +72 -0
  36. data/fixtures/patch/medicationrequest-simple.xml +16 -0
  37. data/fixtures/patient/patient-example-updated.xml +1 -7
  38. data/fixtures/patient/patient-example-us-extensions.xml +119 -0
  39. data/fixtures/patient/patient-example.xml +46 -27
  40. data/fixtures/patient/patient-familyhistory-create.xml +45 -0
  41. data/fixtures/patient/patient-register-create.xml +47 -0
  42. data/fixtures/practitioner/practitioner-register-create.xml +32 -0
  43. data/fixtures/record/condition-example-f201-fever.xml +54 -49
  44. data/fixtures/record/condition-example-f205-infection.xml +16 -15
  45. data/fixtures/record/diagnosticreport-example-f201-brainct.xml +45 -18
  46. data/fixtures/record/encounter-example-f201-20130404.xml +42 -15
  47. data/fixtures/record/encounter-example-f202-20130128.xml +57 -15
  48. data/fixtures/record/observation-example-f202-temperature.xml +85 -60
  49. data/fixtures/record/organization-example-f201-aumc.xml +87 -4
  50. data/fixtures/record/organization-example-f203-bumc.xml +53 -4
  51. data/fixtures/record/patient-example-f201-roel.xml +108 -8
  52. data/fixtures/record/practitioner-example-f201-ab.xml +73 -14
  53. data/fixtures/record/procedure-example-f201-tpf.xml +39 -9
  54. data/fixtures/scheduling/slot-simple.xml +1 -1
  55. data/fixtures/sequence/sequence-register-create.xml +31 -0
  56. data/fixtures/specimen/spec-100.xml +8 -8
  57. data/fixtures/specimen/spec-400.xml +11 -11
  58. data/fixtures/specimen/spec-uslab-example1.xml +11 -11
  59. data/fixtures/specimen/specimen-familyhistory-create.xml +54 -0
  60. data/fixtures/specimen/specimen-register-create.xml +49 -0
  61. data/fixtures/terminology/codesystem-data-types.json +230 -0
  62. data/fixtures/terminology/codesystem-resource-types.json +482 -0
  63. data/fixtures/terminology/codesystem-simple.xml +129 -0
  64. data/fixtures/terminology/conceptmap-example.xml +141 -0
  65. data/fixtures/terminology/v2-codesystem.json +1297 -0
  66. data/fixtures/terminology/v2-valueset.json +16 -0
  67. data/fixtures/terminology/valueset-defined-types.json +25 -0
  68. data/fixtures/terminology/valueset-example.xml +111 -0
  69. data/fixtures/validation/observation.profile.xml +1534 -253
  70. data/fixtures/validation/observations/observation-example.xml +66 -0
  71. data/lib/FHIR_structure.json +129 -82
  72. data/lib/daf_resource_generator.rb +7 -7
  73. data/lib/data/resources.rb +50 -30
  74. data/lib/ext/client.rb +2 -2
  75. data/lib/plan_executor.rb +6 -1
  76. data/lib/resource_generator.rb +413 -212
  77. data/lib/tasks/tasks.rake +151 -20
  78. data/lib/tests/assertions.rb +24 -18
  79. data/lib/tests/base_test.rb +17 -3
  80. data/lib/tests/suites/argonaut_provider_connectathon_test.rb +234 -0
  81. data/lib/tests/suites/base_suite.rb +7 -3
  82. data/lib/tests/suites/connectathon_attachment_track_test.rb +124 -0
  83. data/lib/tests/suites/connectathon_audit_track.rb +113 -69
  84. data/lib/tests/suites/connectathon_care_plan_track.rb +237 -0
  85. data/lib/tests/suites/connectathon_fetch_patient_record.rb +40 -39
  86. data/lib/tests/suites/connectathon_financial_track.rb +231 -23
  87. data/lib/tests/suites/connectathon_genomics_track_test.rb +255 -0
  88. data/lib/tests/suites/connectathon_lab_order_track.rb +131 -104
  89. data/lib/tests/suites/connectathon_patch_track.rb +125 -0
  90. data/lib/tests/suites/connectathon_patient_track.rb +75 -68
  91. data/lib/tests/suites/connectathon_profile_validation.rb +9 -8
  92. data/lib/tests/suites/connectathon_scheduling_track.rb +127 -70
  93. data/lib/tests/suites/connectathon_terminology_track.rb +211 -34
  94. data/lib/tests/suites/daf_profiles_test.rb +112 -72
  95. data/lib/tests/suites/format_test.rb +113 -255
  96. data/lib/tests/suites/history_test.rb +72 -68
  97. data/lib/tests/suites/read_test.rb +31 -27
  98. data/lib/tests/suites/resource_test.rb +283 -85
  99. data/lib/tests/suites/search_test.rb +5 -3
  100. data/lib/tests/suites/search_test_robust.rb +8 -76
  101. data/lib/tests/suites/sprinkler_search_test.rb +104 -84
  102. data/lib/tests/suites/suite_engine.rb +17 -23
  103. data/lib/tests/suites/transaction_test.rb +117 -174
  104. data/lib/tests/testscripts/base_testscript.rb +425 -189
  105. data/lib/tests/testscripts/scripts/connectathon/Patient-01-Intro/Client Assigned Id/connectathon-14-patient-base-client-id-json.xml +517 -0
  106. data/lib/tests/testscripts/scripts/connectathon/Patient-01-Intro/Client Assigned Id/connectathon-14-patient-base-client-id-xml.xml +517 -0
  107. data/lib/tests/testscripts/scripts/connectathon/Patient-01-Intro/Client Assigned Id/connectathon-14-patient-bonus-client-id-json.xml +648 -0
  108. data/lib/tests/testscripts/scripts/connectathon/Patient-01-Intro/Client Assigned Id/connectathon-14-patient-bonus-client-id-xml.xml +648 -0
  109. data/lib/tests/testscripts/scripts/connectathon/Patient-01-Intro/README.html +68 -0
  110. data/lib/tests/testscripts/scripts/connectathon/Patient-01-Intro/Server Assigned Id/connectathon-14-patient-base-server-id-json.xml +515 -0
  111. data/lib/tests/testscripts/scripts/connectathon/Patient-01-Intro/Server Assigned Id/connectathon-14-patient-base-server-id-xml.xml +515 -0
  112. data/lib/tests/testscripts/scripts/connectathon/Patient-01-Intro/Server Assigned Id/connectathon-14-patient-bonus-server-id-json.xml +645 -0
  113. data/lib/tests/testscripts/scripts/connectathon/Patient-01-Intro/Server Assigned Id/connectathon-14-patient-bonus-server-id-xml.xml +642 -0
  114. data/lib/tests/testscripts/scripts/connectathon/Patient-01-Intro/_reference/capabilities/PatientCapabilityStatement.xml +43 -0
  115. data/lib/tests/testscripts/{xml/Connectathon11/Track1-Patient → scripts/connectathon/Patient-01-Intro}/_reference/resources/patient-create-PeterChalmers-min.json +1 -3
  116. data/lib/tests/testscripts/{xml/Connectathon11/Track1-Patient → scripts/connectathon/Patient-01-Intro}/_reference/resources/patient-create-PeterChalmers-min.xml +0 -0
  117. data/lib/tests/testscripts/{xml/Connectathon11/Track1-Patient → scripts/connectathon/Patient-01-Intro}/_reference/resources/patient-create-PeterChalmers.json +5 -10
  118. data/lib/tests/testscripts/{xml/Connectathon11/Track1-Patient → scripts/connectathon/Patient-01-Intro}/_reference/resources/patient-create-PeterChalmers.xml +5 -5
  119. data/lib/tests/testscripts/{xml/Connectathon11/Track1-Patient → scripts/connectathon/Patient-01-Intro}/_reference/resources/patient-create-bonus-PeterChalmers-min.json +1 -3
  120. data/lib/tests/testscripts/{xml/Connectathon11/Track1-Patient → scripts/connectathon/Patient-01-Intro}/_reference/resources/patient-create-bonus-PeterChalmers-min.xml +0 -0
  121. data/lib/tests/testscripts/{xml/Connectathon11/Track1-Patient → scripts/connectathon/Patient-01-Intro}/_reference/resources/patient-create-bonus-PeterChalmers.json +5 -10
  122. data/lib/tests/testscripts/{xml/Connectathon11/Track1-Patient → scripts/connectathon/Patient-01-Intro}/_reference/resources/patient-create-bonus-PeterChalmers.xml +4 -5
  123. data/lib/tests/testscripts/scripts/connectathon/Patient-01-Intro/_reference/resources/patient-create-client-id-PeterChalmers.json +96 -0
  124. data/lib/tests/testscripts/scripts/connectathon/Patient-01-Intro/_reference/resources/patient-create-client-id-PeterChalmers.xml +103 -0
  125. data/lib/tests/testscripts/scripts/connectathon/Patient-01-Intro/_reference/resources/patient-create-client-id-bonus-PeterChalmers.json +104 -0
  126. data/lib/tests/testscripts/scripts/connectathon/Patient-01-Intro/_reference/resources/patient-create-client-id-bonus-PeterChalmers.xml +108 -0
  127. data/lib/tests/testscripts/{xml/Connectathon11/Track1-Patient → scripts/connectathon/Patient-01-Intro}/_reference/resources/patient-update-PeterChalmers-min.json +1 -3
  128. data/lib/tests/testscripts/{xml/Connectathon11/Track1-Patient → scripts/connectathon/Patient-01-Intro}/_reference/resources/patient-update-PeterChalmers-min.xml +0 -0
  129. data/lib/tests/testscripts/{xml/Connectathon11/Track1-Patient → scripts/connectathon/Patient-01-Intro}/_reference/resources/patient-update-PeterChalmers.json +6 -10
  130. data/lib/tests/testscripts/{xml/Connectathon11/Track1-Patient → scripts/connectathon/Patient-01-Intro}/_reference/resources/patient-update-PeterChalmers.xml +6 -5
  131. data/lib/tests/testscripts/{xml/Connectathon11/Track1-Patient → scripts/connectathon/Patient-01-Intro}/_reference/resources/patient-update-bonus1-PeterChalmers-min.json +1 -3
  132. data/lib/tests/testscripts/{xml/Connectathon11/Track1-Patient → scripts/connectathon/Patient-01-Intro}/_reference/resources/patient-update-bonus1-PeterChalmers-min.xml +0 -0
  133. data/lib/tests/testscripts/{xml/Connectathon11/Track1-Patient → scripts/connectathon/Patient-01-Intro}/_reference/resources/patient-update-bonus1-PeterChalmers.json +7 -11
  134. data/lib/tests/testscripts/{xml/Connectathon11/Track1-Patient → scripts/connectathon/Patient-01-Intro}/_reference/resources/patient-update-bonus1-PeterChalmers.xml +5 -5
  135. data/lib/tests/testscripts/{xml/Connectathon11/Track1-Patient → scripts/connectathon/Patient-01-Intro}/_reference/resources/patient-update-bonus2-PeterChalmers-min.json +2 -4
  136. data/lib/tests/testscripts/{xml/Connectathon11/Track1-Patient → scripts/connectathon/Patient-01-Intro}/_reference/resources/patient-update-bonus2-PeterChalmers-min.xml +1 -1
  137. data/lib/tests/testscripts/{xml/Connectathon11/Track1-Patient → scripts/connectathon/Patient-01-Intro}/_reference/resources/patient-update-bonus2-PeterChalmers.json +7 -11
  138. data/lib/tests/testscripts/{xml/Connectathon11/Track1-Patient → scripts/connectathon/Patient-01-Intro}/_reference/resources/patient-update-bonus2-PeterChalmers.xml +8 -7
  139. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRClient/01-RegisterPatient/connectathon-14-patient-fhirclient-01-register-client-id-xml.xml +306 -0
  140. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRClient/01-RegisterPatient/connectathon-14-patient-fhirclient-01-register-server-id-xml.xml +317 -0
  141. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRClient/02-PatientUpdate/connectathon-14-patient-fhirclient-02-update-client-id-xml.xml +346 -0
  142. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRClient/02-PatientUpdate/connectathon-14-patient-fhirclient-02-update-server-id-xml.xml +385 -0
  143. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRClient/_reference/capabilities/PatientCapabilityStatement.json +50 -0
  144. data/lib/tests/testscripts/{xml/Connectathon11/Track1-Patient/_reference/conformance/PatientConformance.xml → scripts/connectathon/Patient-02-Formal/FHIRClient/_reference/capabilities/PatientCapabilityStatement.xml} +10 -2
  145. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRClient/_reference/resources/patient-create-client-id.json +21 -0
  146. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRClient/_reference/resources/patient-create-client-id.xml +15 -0
  147. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRClient/_reference/resources/patient-create-server-id.json +20 -0
  148. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRClient/_reference/resources/patient-create-server-id.xml +14 -0
  149. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRClient/_reference/resources/patient-update-client-id.json +21 -0
  150. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRClient/_reference/resources/patient-update-client-id.xml +15 -0
  151. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRClient/_reference/resources/patient-update-server-id.json +20 -0
  152. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRClient/_reference/resources/patient-update-server-id.xml +14 -0
  153. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/01-RegisterPatient/connectathon-14-patient-fhirserver-01-register-client-id-json.xml +262 -0
  154. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/01-RegisterPatient/connectathon-14-patient-fhirserver-01-register-client-id-xml.xml +262 -0
  155. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/01-RegisterPatient/connectathon-14-patient-fhirserver-01-register-server-id-json.xml +273 -0
  156. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/01-RegisterPatient/connectathon-14-patient-fhirserver-01-register-server-id-xml.xml +273 -0
  157. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/02-PatientUpdate/connectathon-14-patient-fhirserver-02-update-client-id-json.xml +290 -0
  158. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/02-PatientUpdate/connectathon-14-patient-fhirserver-02-update-client-id-xml.xml +290 -0
  159. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/02-PatientUpdate/connectathon-14-patient-fhirserver-02-update-server-id-json.xml +326 -0
  160. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/02-PatientUpdate/connectathon-14-patient-fhirserver-02-update-server-id-xml.xml +326 -0
  161. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/03-PatientRead/connectathon-14-patient-fhirserver-03-read-client-id-json.xml +247 -0
  162. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/03-PatientRead/connectathon-14-patient-fhirserver-03-read-client-id-xml.xml +247 -0
  163. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/03-PatientRead/connectathon-14-patient-fhirserver-03-read-server-id-json.xml +282 -0
  164. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/03-PatientRead/connectathon-14-patient-fhirserver-03-read-server-id-xml.xml +281 -0
  165. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/04-PatientHistory/connectathon-14-patient-fhirserver-04-history-client-id-json.xml +330 -0
  166. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/04-PatientHistory/connectathon-14-patient-fhirserver-04-history-client-id-xml.xml +330 -0
  167. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/04-PatientHistory/connectathon-14-patient-fhirserver-04-history-server-id-json.xml +366 -0
  168. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/04-PatientHistory/connectathon-14-patient-fhirserver-04-history-server-id-xml.xml +366 -0
  169. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/05-PatientVRead/connectathon-14-patient-fhirserver-05-vread-client-id-json.xml +527 -0
  170. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/05-PatientVRead/connectathon-14-patient-fhirserver-05-vread-client-id-xml.xml +527 -0
  171. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/05-PatientVRead/connectathon-14-patient-fhirserver-05-vread-server-id-json.xml +519 -0
  172. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/05-PatientVRead/connectathon-14-patient-fhirserver-05-vread-server-id-xml.xml +519 -0
  173. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/06-PatientSearching/connectathon-14-patient-fhirserver-06-search-client-id-json.xml +290 -0
  174. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/06-PatientSearching/connectathon-14-patient-fhirserver-06-search-client-id-xml.xml +290 -0
  175. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/06-PatientSearching/connectathon-14-patient-fhirserver-06-search-server-id-json.xml +288 -0
  176. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/06-PatientSearching/connectathon-14-patient-fhirserver-06-search-server-id-xml.xml +288 -0
  177. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/07-PatientDeletion/connectathon-14-patient-fhirserver-07-delete-client-id-json.xml +252 -0
  178. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/07-PatientDeletion/connectathon-14-patient-fhirserver-07-delete-client-id-xml.xml +252 -0
  179. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/07-PatientDeletion/connectathon-14-patient-fhirserver-07-delete-server-id-json.xml +284 -0
  180. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/07-PatientDeletion/connectathon-14-patient-fhirserver-07-delete-server-id-xml.xml +284 -0
  181. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/99-PatientAll/connectathon-14-patient-fhirserver-99-all-client-id-json.xml +897 -0
  182. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/99-PatientAll/connectathon-14-patient-fhirserver-99-all-client-id-xml.xml +897 -0
  183. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/99-PatientAll/connectathon-14-patient-fhirserver-99-all-server-id-json.xml +963 -0
  184. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/99-PatientAll/connectathon-14-patient-fhirserver-99-all-server-id-xml.xml +963 -0
  185. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/_reference/capabilities/PatientCapabilityStatement.json +50 -0
  186. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/_reference/capabilities/PatientCapabilityStatement.xml +42 -0
  187. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/_reference/resources/patient-create-client-id.json +86 -0
  188. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/_reference/resources/patient-create-client-id.xml +62 -0
  189. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/_reference/resources/patient-create-server-id.json +85 -0
  190. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/_reference/resources/patient-create-server-id.xml +61 -0
  191. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/_reference/resources/patient-update-client-id.json +86 -0
  192. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/_reference/resources/patient-update-client-id.xml +62 -0
  193. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/_reference/resources/patient-update-server-id.json +86 -0
  194. data/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRServer/_reference/resources/patient-update-server-id.xml +62 -0
  195. data/lib/tests/testscripts/scripts/spec/_reference/resources/patient-example-update.json +145 -0
  196. data/lib/tests/testscripts/scripts/spec/_reference/resources/patient-example.json +146 -0
  197. data/lib/tests/testscripts/scripts/spec/testscript-example-history.xml +191 -0
  198. data/lib/tests/testscripts/scripts/spec/testscript-example-multisystem.xml +190 -0
  199. data/lib/tests/testscripts/scripts/spec/testscript-example-readtest.xml +178 -0
  200. data/lib/tests/testscripts/scripts/spec/testscript-example-rule.xml +266 -0
  201. data/lib/tests/testscripts/scripts/spec/testscript-example-search.xml +177 -0
  202. data/lib/tests/testscripts/scripts/spec/testscript-example-update.xml +163 -0
  203. data/lib/tests/testscripts/scripts/spec/testscript-example.xml +228 -0
  204. data/lib/tests/testscripts/testscript_engine.rb +36 -22
  205. data/logs/.keep +0 -0
  206. data/plan_executor.gemspec +11 -3
  207. data/test/test_helper.rb +3 -3
  208. data/test/unit/fixtures_test.rb +24 -24
  209. data/test/unit/metadata_test.rb +19 -9
  210. data/test/unit/resource_generator_test.rb +20 -0
  211. metadata +244 -249
  212. data/fixtures/diagnostic_order/do-200.xml +0 -121
  213. data/fixtures/diagnostic_order/do-400.xml +0 -88
  214. data/fixtures/financial/claim-example-average.xml +0 -168
  215. data/fixtures/financial/claim-example-simple.xml +0 -67
  216. data/fixtures/order/order-100.xml +0 -61
  217. data/fixtures/order/order-200.xml +0 -61
  218. data/fixtures/order/order-300.xml +0 -61
  219. data/fixtures/order/order-400.xml +0 -61
  220. data/fixtures/order_response/ordresp-100.xml +0 -79
  221. data/fixtures/order_response/ordresp-110.xml +0 -79
  222. data/fixtures/order_response/ordresp-200.xml +0 -79
  223. data/fixtures/order_response/ordresp-210.xml +0 -79
  224. data/fixtures/order_response/ordresp-300.xml +0 -79
  225. data/fixtures/order_response/ordresp-310.xml +0 -79
  226. data/fixtures/order_response/ordresp-400.xml +0 -79
  227. data/fixtures/order_response/ordresp-410.xml +0 -79
  228. data/fixtures/patient/patient-example-us-extensions(us01).xml +0 -81
  229. data/fixtures/patient/patient-format-example.xml +0 -101
  230. data/fixtures/validation/observations/observation-example(example).xml +0 -50
  231. data/lib/tests/suites/argonaut_resprint_1_test.rb +0 -260
  232. data/lib/tests/suites/argonaut_resprint_2_test.rb +0 -369
  233. data/lib/tests/suites/argonaut_resprint_3_test.rb +0 -309
  234. data/lib/tests/suites/argonaut_sprint_1_test.rb +0 -187
  235. data/lib/tests/suites/argonaut_sprint_2_test.rb +0 -115
  236. data/lib/tests/suites/argonaut_sprint_3_test.rb +0 -208
  237. data/lib/tests/suites/argonaut_sprint_4_test.rb +0 -335
  238. data/lib/tests/suites/argonaut_sprint_5_test.rb +0 -196
  239. data/lib/tests/suites/argonaut_sprint_6_test.rb +0 -243
  240. data/lib/tests/suites/argonaut_sprint_7_test.rb +0 -161
  241. data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/Client Assigned Id/track1-patient-base-client-id-json.xml +0 -348
  242. data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/Client Assigned Id/track1-patient-base-client-id-xml.xml +0 -348
  243. data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/Client Assigned Id/track1-patient-bonus-client-id-json.xml +0 -420
  244. data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/Client Assigned Id/track1-patient-bonus-client-id-xml.xml +0 -420
  245. data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/README.html +0 -68
  246. data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/Server Assigned Id/track1-patient-base-server-id-json.xml +0 -352
  247. data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/Server Assigned Id/track1-patient-base-server-id-xml.xml +0 -352
  248. data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/Server Assigned Id/track1-patient-bonus-server-id-json.xml +0 -421
  249. data/lib/tests/testscripts/xml/Connectathon11/Track1-Patient/Server Assigned Id/track1-patient-bonus-server-id-xml.xml +0 -421
  250. data/lib/tests/testscripts/xml/Connectathon11/Track11-SDC/_reference/C-CDA_R2-1_CCD-ussg.xml +0 -3414
  251. data/lib/tests/testscripts/xml/Connectathon11/Track11-SDC/_reference/resources/parameters-A1-empty-on-instance.xml +0 -9
  252. data/lib/tests/testscripts/xml/Connectathon11/Track11-SDC/_reference/resources/parameters-A2-empty-by-ref.xml +0 -15
  253. data/lib/tests/testscripts/xml/Connectathon11/Track11-SDC/_reference/resources/parameters-A3-empty-by-identifier.xml +0 -13
  254. data/lib/tests/testscripts/xml/Connectathon11/Track11-SDC/_reference/resources/parameters-A4-empty-by-contained.xml +0 -15
  255. data/lib/tests/testscripts/xml/Connectathon11/Track11-SDC/_reference/resources/parameters-B1-CCDA-on-instance.xml +0 -15
  256. data/lib/tests/testscripts/xml/Connectathon11/Track11-SDC/_reference/resources/parameters-B2-CCDA-by-ref.xml +0 -21
  257. data/lib/tests/testscripts/xml/Connectathon11/Track11-SDC/_reference/resources/parameters-B3-CCDA-by-identifier.xml +0 -19
  258. data/lib/tests/testscripts/xml/Connectathon11/Track11-SDC/_reference/resources/parameters-B4-CCDA-by-contained.xml +0 -21
  259. data/lib/tests/testscripts/xml/Connectathon11/Track11-SDC/_reference/resources/questionnaire-sdc-profile-example-ussg-fht.xml +0 -3905
  260. data/lib/tests/testscripts/xml/Connectathon11/Track11-SDC/_reference/resources/questionnaireresponse-expected-ussg-fht-CCDA.xml +0 -190
  261. data/lib/tests/testscripts/xml/Connectathon11/Track11-SDC/_reference/resources/questionnaireresponse-expected-ussg-fht-empty.xml +0 -177
  262. data/lib/tests/testscripts/xml/Connectathon11/Track11-SDC/track11-sdc-prepop-xml.xml +0 -142
  263. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/Expand/Client Assigned Id/track2-ts-suite1-expand-client-id.xml +0 -925
  264. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/Expand/Client Assigned Id/track2-ts-suite2-expand-filter-client-id.xml +0 -930
  265. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/Expand/Server Assigned Id/track2-ts-suite1-expand-server-id.xml +0 -953
  266. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/Expand/Server Assigned Id/track2-ts-suite2-expand-filter-server-id.xml +0 -958
  267. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/Lookup/track2-ts-suite5-loinc-lookup-xml.xml +0 -224
  268. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/Lookup/track2-ts-suite5-snomed-lookup-xml.xml +0 -224
  269. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/README.html +0 -85
  270. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/Translate/track2-ts-suite6-translate-xml.xml +0 -224
  271. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/Validate-code/Client Assigned Id/track2-ts-suite3-validate-code-client-id.xml +0 -1807
  272. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/Validate-code/Client Assigned Id/track2-ts-suite4-validate-code-client-id.xml +0 -714
  273. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/Validate-code/Server Assigned Id/track2-ts-suite3-validate-code-server-id.xml +0 -1835
  274. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/Validate-code/Server Assigned Id/track2-ts-suite4-validate-code-server-id.xml +0 -742
  275. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/conformance/ConceptMapSuite6Conformance.xml +0 -11
  276. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/conformance/ValueSetSuite1Conformance.xml +0 -17
  277. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/conformance/ValueSetSuite2Conformance.xml +0 -17
  278. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/conformance/ValueSetSuite3Conformance.xml +0 -14
  279. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/conformance/ValueSetSuite4Conformance.xml +0 -14
  280. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/conformance/ValueSetSuite5Conformance.xml +0 -11
  281. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/input/extensional-case-1-input-4-2-a.xml +0 -11
  282. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/input/extensional-case-1-input-4-2-b.xml +0 -11
  283. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/input/extensional-case-1-input-4-3-a.xml +0 -13
  284. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/input/extensional-case-1-input-4-3-b.xml +0 -13
  285. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/input/extensional-case-1-input-4-4-a.xml +0 -15
  286. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/input/extensional-case-1-input-4-4-b.xml +0 -15
  287. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/input/lookup-loinc-input-5-2.xml +0 -10
  288. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/input/lookup-loinc-input-5-3.xml +0 -11
  289. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/input/lookup-snomed-input-5-2.xml +0 -10
  290. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/input/lookup-snomed-input-5-3.xml +0 -11
  291. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/input/translate-conceptmap-input-6-2.xml +0 -14
  292. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/input/translate-conceptmap-input-6-3.xml +0 -15
  293. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/extensional-case-1-expand-min.xml +0 -47
  294. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/extensional-case-1-filter-min.xml +0 -23
  295. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/extensional-case-2-expand-min.xml +0 -132
  296. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/extensional-case-2-filter-min.xml +0 -38
  297. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/extensional-case-3-expand-min.xml +0 -252
  298. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/extensional-case-3-filter-min.xml +0 -58
  299. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/extensional-case-4-expand-min.xml +0 -57
  300. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/extensional-case-4-filter-min.xml +0 -28
  301. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/intensional-case-1-expand-min.xml +0 -347
  302. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/intensional-case-1-filter-min.xml +0 -33
  303. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/intensional-case-2-expand-min.xml +0 -637
  304. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/intensional-case-2-filter-min.xml +0 -33
  305. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/intensional-case-3-filter-min.xml +0 -58
  306. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/lookup-loinc-min.xml +0 -11
  307. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/lookup-snomed-min.xml +0 -11
  308. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/suite3-invalid-min.xml +0 -10
  309. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/suite3-valid-min.xml +0 -7
  310. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/suite4-invalid-min.xml +0 -10
  311. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/suite4-valid-min.xml +0 -7
  312. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/output/translate-conceptmap-min.xml +0 -17
  313. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/resources/extensional-case-1.xml +0 -55
  314. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/resources/extensional-case-2.xml +0 -122
  315. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/resources/extensional-case-3.xml +0 -222
  316. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/resources/extensional-case-4.xml +0 -65
  317. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/resources/intensional-case-1.xml +0 -31
  318. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/resources/intensional-case-2.xml +0 -31
  319. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/resources/intensional-case-3.xml +0 -31
  320. data/lib/tests/testscripts/xml/Connectathon11/Track2-Terminology/_reference/resources/translate-conceptmap-case-1.xml +0 -145
  321. data/lib/tests/testscripts/xml/Connectathon11/Track3-CDS-on-FHIR/_reference/conformance/DecisionSupportServiceModule-Evaluate.xml +0 -17
  322. data/lib/tests/testscripts/xml/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/ecrs-fhir-cdc-immunizations-incomplete-request-payload.xml +0 -26
  323. data/lib/tests/testscripts/xml/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/ecrs-fhir-cdc-immunizations-incomplete-response-min-payload.xml +0 -7
  324. data/lib/tests/testscripts/xml/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/ecrs-fhir-cdc-immunizations-incomplete-response-payload.xml +0 -332
  325. data/lib/tests/testscripts/xml/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/ecrs-fhir-cdc-immunizations-malformed-request-payload.xml +0 -28
  326. data/lib/tests/testscripts/xml/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/ecrs-fhir-cdc-immunizations-malformed-response-min-payload.xml +0 -7
  327. data/lib/tests/testscripts/xml/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/ecrs-fhir-cdc-immunizations-malformed-response-payload.xml +0 -20
  328. data/lib/tests/testscripts/xml/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/ecrs-fhir-cdc-immunizations-request-payload.xml +0 -28
  329. data/lib/tests/testscripts/xml/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/ecrs-fhir-cdc-immunizations-response-min-payload.xml +0 -7
  330. data/lib/tests/testscripts/xml/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/ecrs-fhir-cdc-immunizations-response-payload.xml +0 -332
  331. data/lib/tests/testscripts/xml/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/ecrs-fhir-cdc-immunizations-unauthorized-request-payload.xml +0 -28
  332. data/lib/tests/testscripts/xml/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/ecrs-fhir-cdc-immunizations-unauthorized-response-min-payload.xml +0 -7
  333. data/lib/tests/testscripts/xml/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/ecrs-fhir-cdc-immunizations-unauthorized-response-payload.xml +0 -8
  334. data/lib/tests/testscripts/xml/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/gao-assessment-request-payload.xml +0 -176
  335. data/lib/tests/testscripts/xml/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/gao-assessment-response-payload-min.xml +0 -32
  336. data/lib/tests/testscripts/xml/Connectathon11/Track3-CDS-on-FHIR/_reference/resources/gao-assessment-response-payload.xml +0 -80
  337. data/lib/tests/testscripts/xml/Connectathon11/Track3-CDS-on-FHIR/track3-cds-evaluate-cdc-immunization.xml +0 -290
  338. data/lib/tests/testscripts/xml/Connectathon11/Track3-CDS-on-FHIR/track3-cds-evaluate-gao-profile.xml +0 -110
  339. data/lib/tests/testscripts/xml/Connectathon11/Track6-FHIR-Genomics/Client_Assigned_Id/TestScript_FHIR-Genomics.xml +0 -170
  340. data/lib/tests/testscripts/xml/Connectathon11/Track6-FHIR-Genomics/_reference/resources/sequence-example-1.xml +0 -31
  341. data/lib/tests/testscripts/xml/Connectathon11/Track6-FHIR-Genomics/_reference/resources/sequence-example-2.xml +0 -31
  342. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/Actors.png +0 -0
  343. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/Client_Assigned_Id/track7-laborder100-xml.xml +0 -590
  344. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/Client_Assigned_Id/track7-laborder200-xml.xml +0 -587
  345. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/Client_Assigned_Id/track7-laborder300-xml.xml +0 -612
  346. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/Client_Assigned_Id/track7-laborder400-xml.xml +0 -635
  347. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/Peer-to-Peer/track7-laborder100-peer2peer-xml.xml +0 -752
  348. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/Thumbs.db +0 -0
  349. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/conformance/LabOrderLabReport-CreateDeleteReadUpdate.xml +0 -187
  350. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/conformance/html.xslt +0 -45
  351. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/DiagnosticOrder/do-100-update.xml +0 -64
  352. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/DiagnosticOrder/do-100.xml +0 -64
  353. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/DiagnosticOrder/do-200-update.xml +0 -121
  354. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/DiagnosticOrder/do-200.xml +0 -121
  355. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/DiagnosticOrder/do-300-update.xml +0 -91
  356. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/DiagnosticOrder/do-300.xml +0 -91
  357. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/DiagnosticOrder/do-400-update.xml +0 -88
  358. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/DiagnosticReport/dr-100.xml +0 -96
  359. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/DiagnosticReport/dr-200.xml +0 -125
  360. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/DiagnosticReport/dr-300.xml +0 -132
  361. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/DiagnosticReport/dr-400.xml +0 -121
  362. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-100.xml +0 -58
  363. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-101.xml +0 -58
  364. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-200.xml +0 -125
  365. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-300.xml +0 -106
  366. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-301.xml +0 -106
  367. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-302.xml +0 -106
  368. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-303.xml +0 -106
  369. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-304.xml +0 -106
  370. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-400.xml +0 -87
  371. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-401.xml +0 -95
  372. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-402.xml +0 -95
  373. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-403.xml +0 -84
  374. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-404.xml +0 -84
  375. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-405.xml +0 -83
  376. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-406.xml +0 -83
  377. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-407.xml +0 -70
  378. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-408.xml +0 -84
  379. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Observation/obs-uslab-example5.xml +0 -102
  380. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Order/order-100.xml +0 -61
  381. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Order/order-200.xml +0 -61
  382. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Order/order-300.xml +0 -61
  383. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Order/order-400.xml +0 -61
  384. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/OrderResponse/ordresp-100.xml +0 -79
  385. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/OrderResponse/ordresp-110.xml +0 -79
  386. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/OrderResponse/ordresp-200.xml +0 -79
  387. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/OrderResponse/ordresp-210.xml +0 -79
  388. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/OrderResponse/ordresp-300.xml +0 -79
  389. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/OrderResponse/ordresp-310.xml +0 -79
  390. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/OrderResponse/ordresp-400.xml +0 -79
  391. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/OrderResponse/ordresp-410.xml +0 -79
  392. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Organization/org-uslab-example3.xml +0 -49
  393. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Patient/patient-uslab-example1.xml +0 -44
  394. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Practitioner/pract-uslab-example1.xml +0 -18
  395. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Practitioner/pract-uslab-example3.xml +0 -36
  396. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Specimen/Thumbs.db +0 -0
  397. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Specimen/spec-100.xml +0 -65
  398. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Specimen/spec-400.xml +0 -70
  399. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Specimen/spec-uslab-example1.xml +0 -82
  400. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Testscript 1 Document.txt +0 -122
  401. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Testscript 2 Document.txt +0 -103
  402. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Testscript 3 Document.txt +0 -201
  403. data/lib/tests/testscripts/xml/Connectathon11/Track7-LabOrderLabReport/_reference/resources/Testscript 4 Document.txt +0 -310
  404. data/lib/tests/testscripts/xml/Connectathon11/Track9-Patch/_reference/conformance/MedicationStatementCreate.xml +0 -11
  405. data/lib/tests/testscripts/xml/Connectathon11/Track9-Patch/_reference/conformance/PatientSearchType.xml +0 -15
  406. data/lib/tests/testscripts/xml/Connectathon11/Track9-Patch/_reference/resources/medicationstatement-create.json +0 -39
  407. data/lib/tests/testscripts/xml/Connectathon11/Track9-Patch/_reference/resources/medicationstatement-patch.json +0 -3
  408. data/lib/tests/testscripts/xml/Connectathon11/Track9-Patch/track9-patch-medicationstatement-json-if-match.xml +0 -321
  409. data/lib/tests/testscripts/xml/Connectathon11/Track9-Patch/track9-patch-medicationstatement-json.xml +0 -303
  410. data/lib/tests/testscripts/xml/Connectathon11/Track9-Patch/track9-patch-peer2peer-patient-json.xml +0 -235
  411. data/test/fixtures/testscript-example.xml +0 -202
  412. data/test/fixtures/testscript-history.xml +0 -143
  413. data/test/fixtures/testscript-readtest.xml +0 -272
  414. data/test/fixtures/testscript-search.xml +0 -282
  415. data/test/fixtures/testscript-update.xml +0 -147
  416. data/test/unit/argonaut_sprint6_test.rb +0 -31
  417. data/test/unit/argonaut_sprint7_test.rb +0 -21
  418. data/test/unit/basic_test.rb +0 -27
  419. data/test/unit/fetch_patient_record_test.rb +0 -357
  420. data/test/unit/financial_test.rb +0 -41
@@ -1,224 +0,0 @@
1
- <TestScript xmlns="http://hl7.org/fhir">
2
- <id value="track2-ts-suite6-translate-xml"/>
3
-
4
- <url value="http://wildfhir.aegis.net/fhir/TestScript/track2-ts-suite6-translate-xml"/>
5
- <name value="FHIR Connectathon 11 - Track 2 - Terminology Services - Suite 6 - ConceptMap translate"/>
6
- <status value="draft"/>
7
- <publisher value="AEGIS.net, Inc."/>
8
- <contact>
9
- <name value="Touchstone Support"/>
10
- <telecom>
11
- <system value="email"/>
12
- <value value="Touchstone_Support@aegis.net"/>
13
- <use value="work"/>
14
- </telecom>
15
- </contact>
16
- <date value="2016-01-14"/>
17
- <description value="FHIR Connectathon 11 - Track 2 - Terminology Services - Suite 6 - Simple translate tests against a known ConceptMap."/>
18
- <useContext>
19
- <coding>
20
- <system value="urn:iso:std:iso:3166"/>
21
- <code value="US"/>
22
- <display value="United States of America (the)"/>
23
- </coding>
24
- </useContext>
25
- <requirements value="ValueSet Lookup Operation"/>
26
- <copyright value="© AEGIS.net, Inc. 2015+"/>
27
-
28
- <metadata>
29
- <capability>
30
- <required value="true"/>
31
- <description value="ConceptMap create, read and translate operations"/>
32
- <link value="http://hl7.org/fhir/2016Jan/conceptmap-operations.html#translate"/>
33
- <link value="http://hl7.org/fhir/2016Jan/conceptmap.html"/>
34
- <conformance>
35
- <reference value="/Connectathon11/Track2-Terminology/_reference/conformance/ConceptMapSuite6Conformance.xml" />
36
- </conformance>
37
- </capability>
38
- </metadata>
39
-
40
- <fixture id="translate-conceptmap-min">
41
- <resource>
42
- <reference value="/Connectathon11/Track2-Terminology/_reference/output/translate-conceptmap-min.xml"/>
43
- </resource>
44
- </fixture>
45
- <fixture id="translate-conceptmap-input-6-2">
46
- <resource>
47
- <reference value="/Connectathon11/Track2-Terminology/_reference/input/translate-conceptmap-input-6-2.xml"/>
48
- </resource>
49
- </fixture>
50
- <fixture id="translate-conceptmap-input-6-3">
51
- <resource>
52
- <reference value="/Connectathon11/Track2-Terminology/_reference/input/translate-conceptmap-input-6-3.xml"/>
53
- </resource>
54
- </fixture>
55
-
56
- <profile id="ParametersProfile">
57
- <reference value="http://hl7.org/fhir/StructureDefinition/Parameters"/>
58
- </profile>
59
-
60
- <test id="6-1-SimpleConceptMapTranslateCase1">
61
- <name value="Simple ConceptMap Translate Test for system, code and target using HTTP GET"/>
62
- <description value="Simple ConceptMap $translate operation test using HTTP GET for system=http://hl7.org/fhir/address-use&amp;code=home&amp;target=http://hl7.org/fhir/v3/AddressUse."/>
63
-
64
- <action>
65
- <operation>
66
- <type>
67
- <code value="translate"/>
68
- </type>
69
- <resource value="ConceptMap"/>
70
- <description value="Test ConceptMap $translate operation using HTTP GET for system=http://hl7.org/fhir/address-use&amp;code=home&amp;target=http://hl7.org/fhir/v3/AddressUse."/>
71
- <accept value="xml"/>
72
- <contentType value="xml"/>
73
- <encodeRequestUrl value="true"/>
74
- <params value="/$translate?system=http://hl7.org/fhir/address-use&amp;code=home&amp;target=http://hl7.org/fhir/v3/AddressUse"/>
75
- </operation>
76
- </action>
77
- <action>
78
- <assert>
79
- <description value="Confirm that the returned HTTP status is 200(OK)."/>
80
- <response value="okay"/>
81
- </assert>
82
- </action>
83
- <action>
84
- <assert>
85
- <description value="Confirm that the returned format is XML."/>
86
- <contentType value="xml"/>
87
- <warningOnly value="true"/>
88
- </assert>
89
- </action>
90
- <action>
91
- <assert>
92
- <description value="Confirm that the returned resource type is Parameters."/>
93
- <resource value="Parameters"/>
94
- <warningOnly value="true"/>
95
- </assert>
96
- </action>
97
- <action>
98
- <assert>
99
- <description value="Confirm that the returned Parameters resource type conforms the base FHIR specification."/>
100
- <validateProfileId value="ParametersProfile"/>
101
- <warningOnly value="true"/>
102
- </assert>
103
- </action>
104
- <!--
105
- <action>
106
- <assert>
107
- <description value="Confirm that the returned Parameters resource contains the expected minimum contents."/>
108
- <minimumId value="translate-conceptmap-min"/>
109
- <warningOnly value="true"/>
110
- </assert>
111
- </action>
112
- -->
113
- </test>
114
-
115
- <test id="6-2-SimpleConceptMapTranslateCase2">
116
- <name value="Simple ConceptMap Translate Test Case 2 for system, code and target using HTTP POST"/>
117
- <description value="Simple ConceptMap $translate operation test using HTTP POST with Parameters coding parameter with system=http://hl7.org/fhir/address-use and code=home, and target parameter equal to http://hl7.org/fhir/v3/AddressUse."/>
118
-
119
- <action>
120
- <operation>
121
- <type>
122
- <code value="translate"/>
123
- </type>
124
- <description value="Test ConceptMap $translate operation using HTTP POST with Parameters coding parameter with system=http://hl7.org/fhir/address-use and code=home, and target parameter equal to http://hl7.org/fhir/v3/AddressUse."/>
125
- <accept value="xml"/>
126
- <contentType value="xml"/>
127
- <encodeRequestUrl value="true"/>
128
- <params value="ConceptMap/$translate"/>
129
- <sourceId value="translate-conceptmap-input-6-2"/>
130
- </operation>
131
- </action>
132
- <action>
133
- <assert>
134
- <description value="Confirm that the returned HTTP status is 200(OK)."/>
135
- <response value="okay"/>
136
- </assert>
137
- </action>
138
- <action>
139
- <assert>
140
- <description value="Confirm that the returned format is XML."/>
141
- <contentType value="xml"/>
142
- <warningOnly value="true"/>
143
- </assert>
144
- </action>
145
- <action>
146
- <assert>
147
- <description value="Confirm that the returned resource type is Parameters."/>
148
- <resource value="Parameters"/>
149
- <warningOnly value="true"/>
150
- </assert>
151
- </action>
152
- <action>
153
- <assert>
154
- <description value="Confirm that the returned Parameters resource type conforms the base FHIR specification."/>
155
- <validateProfileId value="ParametersProfile"/>
156
- <warningOnly value="true"/>
157
- </assert>
158
- </action>
159
- <!--
160
- <action>
161
- <assert>
162
- <description value="Confirm that the returned Parameters resource contains the expected minimum contents."/>
163
- <minimumId value="translate-conceptmap-min"/>
164
- <warningOnly value="true"/>
165
- </assert>
166
- </action>
167
- -->
168
- </test>
169
-
170
- <test id="6-3-SimpleConceptMapTranslateCase3">
171
- <name value="Simple ConceptMap Translate Test Case 3 for system, code and target using HTTP POST"/>
172
- <description value="Simple ConceptMap $translate operation test using HTTP POST with Parameters system=http://hl7.org/fhir/address-use, code=home and target=http://hl7.org/fhir/v3/AddressUse."/>
173
-
174
- <action>
175
- <operation>
176
- <type>
177
- <code value="translate"/>
178
- </type>
179
- <description value="Test ConceptMap $translate operation using HTTP POST with Parameters system=http://hl7.org/fhir/address-use, code=home and target=http://hl7.org/fhir/v3/AddressUse."/>
180
- <accept value="xml"/>
181
- <contentType value="xml"/>
182
- <encodeRequestUrl value="true"/>
183
- <params value="ConceptMap/$translate"/>
184
- <sourceId value="translate-conceptmap-input-6-3"/>
185
- </operation>
186
- </action>
187
- <action>
188
- <assert>
189
- <description value="Confirm that the returned HTTP status is 200(OK)."/>
190
- <response value="okay"/>
191
- </assert>
192
- </action>
193
- <action>
194
- <assert>
195
- <description value="Confirm that the returned format is XML."/>
196
- <contentType value="xml"/>
197
- <warningOnly value="true"/>
198
- </assert>
199
- </action>
200
- <action>
201
- <assert>
202
- <description value="Confirm that the returned resource type is Parameters."/>
203
- <resource value="Parameters"/>
204
- <warningOnly value="true"/>
205
- </assert>
206
- </action>
207
- <action>
208
- <assert>
209
- <description value="Confirm that the returned Parameters resource type conforms the base FHIR specification."/>
210
- <validateProfileId value="ParametersProfile"/>
211
- <warningOnly value="true"/>
212
- </assert>
213
- </action>
214
- <!--
215
- <action>
216
- <assert>
217
- <description value="Confirm that the returned Parameters resource contains the expected minimum contents."/>
218
- <minimumId value="lookup-loinc-min"/>
219
- <warningOnly value="true"/>
220
- </assert>
221
- </action>
222
- -->
223
- </test>
224
- </TestScript>
@@ -1,1807 +0,0 @@
1
- <TestScript xmlns="http://hl7.org/fhir">
2
- <id value="track2-ts-suite3-validate-code-client-id"/>
3
- <text>
4
- <status value="generated"/>
5
- <div xmlns="http://www.w3.org/1999/xhtml">
6
- <p>
7
- Setup: The setup section defines the 7 value sets that are used to test the API
8
- functionality. The 7 value sets span common extensional and intensional definition
9
- styles and consequences.
10
- </p>
11
- <p>
12
- Suite 3: A set of membership tests for each of the valuesets. Check, for each
13
- value set, a valid code, and various kinds of invalid codes. Some value sets have
14
- additional variations. In all cases, the code to test is passed as code, system
15
- and (optionally) display parameters in the URL. These tests are highly
16
- repetitive. Overview of value sets:
17
- </p>
18
- <ul>
19
- <li>extensional-case-1: An enumeration of codes from a FHIR defined code system</li>
20
- <li>extensional-case-2: An enumeration of codes from LOINC</li>
21
- <li>extensional-case-3: An enumeration of codes from SNOMED </li>
22
- <li>extensional-case-4: An enumeration of codes the crosses code systems, with codes from a FHIR defined value set and the V3 Role code system</li>
23
- <li>intensional-case-1: A selection of codes from LOINC by their system value</li>
24
- <li>intensional-case-2: A selection of codes from SNOMED based on subsumption</li>
25
- <li>intensional-case-3: All clinical findings from SNOMED (based on subsumption) - a value set that is too large to expand</li>
26
- </ul>
27
- </div>
28
- </text>
29
-
30
- <url value="http://wildfhir.aegis.net/fhir/TestScript/track2-ts-suite3-validate-code-client-id"/>
31
- <name value="FHIR Connectathon 11 - Track 2 - Terminology Services - Suite 3"/>
32
- <status value="draft"/>
33
- <publisher value="AEGIS.net, Inc."/>
34
- <contact>
35
- <name value="Touchstone Support"/>
36
- <telecom>
37
- <system value="email"/>
38
- <value value="Touchstone_Support@aegis.net"/>
39
- <use value="work"/>
40
- </telecom>
41
- </contact>
42
- <date value="2015-12-30"/>
43
- <description value="FHIR Connectathon 11 - Track 2 - Terminology Services - Suite 3 - A set of membership validation tests for each of the 7 ValueSet fixtures. Checks are performed for valid codes and various invalid codes. Setup creates the ValueSet resources with client defined resource ids."/>
44
- <useContext>
45
- <coding>
46
- <system value="urn:iso:std:iso:3166"/>
47
- <code value="US"/>
48
- <display value="United States of America (the)"/>
49
- </coding>
50
- </useContext>
51
- <requirements value="ValueSet Create, Read and Expand Operations"/>
52
- <copyright value="© AEGIS.net, Inc. 2015+"/>
53
-
54
- <metadata>
55
- <capability>
56
- <required value="true"/>
57
- <description value="ValueSet create, read and expand operations"/>
58
- <link value="http://hl7.org/fhir/2016Jan/http.html#create"/>
59
- <link value="http://hl7.org/fhir/2016Jan/valueset-operations.html#validate-code"/>
60
- <link value="http://hl7.org/fhir/2016Jan/valueset.html"/>
61
- <conformance>
62
- <reference value="/Connectathon11/Track2-Terminology/_reference/conformance/ValueSetSuite3Conformance.xml" />
63
- </conformance>
64
- </capability>
65
- </metadata>
66
-
67
- <fixture id="extensional-case-1">
68
- <resource>
69
- <reference value="/Connectathon11/Track2-Terminology/_reference/resources/extensional-case-1.xml"/>
70
- </resource>
71
- </fixture>
72
- <fixture id="extensional-case-2">
73
- <resource>
74
- <reference value="/Connectathon11/Track2-Terminology/_reference/resources/extensional-case-2.xml"/>
75
- </resource>
76
- </fixture>
77
- <fixture id="extensional-case-3">
78
- <resource>
79
- <reference value="/Connectathon11/Track2-Terminology/_reference/resources/extensional-case-3.xml"/>
80
- </resource>
81
- </fixture>
82
- <fixture id="extensional-case-4">
83
- <resource>
84
- <reference value="/Connectathon11/Track2-Terminology/_reference/resources/extensional-case-4.xml"/>
85
- </resource>
86
- </fixture>
87
- <fixture id="intensional-case-1">
88
- <resource>
89
- <reference value="/Connectathon11/Track2-Terminology/_reference/resources/intensional-case-1.xml"/>
90
- </resource>
91
- </fixture>
92
- <fixture id="intensional-case-2">
93
- <resource>
94
- <reference value="/Connectathon11/Track2-Terminology/_reference/resources/intensional-case-2.xml"/>
95
- </resource>
96
- </fixture>
97
- <fixture id="intensional-case-3">
98
- <resource>
99
- <reference value="/Connectathon11/Track2-Terminology/_reference/resources/intensional-case-3.xml"/>
100
- </resource>
101
- </fixture>
102
-
103
- <fixture id="suite3-valid-min">
104
- <resource>
105
- <reference value="/Connectathon11/Track2-Terminology/_reference/output/suite3-valid-min.xml"/>
106
- </resource>
107
- </fixture>
108
- <fixture id="suite3-invalid-min">
109
- <resource>
110
- <reference value="/Connectathon11/Track2-Terminology/_reference/output/suite3-invalid-min.xml"/>
111
- </resource>
112
- </fixture>
113
-
114
- <profile id="ParametersProfile">
115
- <reference value="http://hl7.org/fhir/StructureDefinition/Parameters"/>
116
- </profile>
117
- <profile id="ValueSetProfile">
118
- <reference value="http://hl7.org/fhir/StructureDefinition/ValueSet"/>
119
- </profile>
120
- <!--
121
- <setup id="CreateRequiredResources">
122
- <action>
123
- <operation>
124
- <type>
125
- <code value="update"/>
126
- </type>
127
- <resource value="ValueSet"/>
128
- <description value="Create ValueSet extensional-case-1."/>
129
- <accept value="xml"/>
130
- <params value="/extensional-case-1"/>
131
- <sourceId value="extensional-case-1"/>
132
- </operation>
133
- </action>
134
- <action>
135
- <assert>
136
- <operator value="in"/>
137
- <responseCode value="200,201"/>
138
- </assert>
139
- </action>
140
-
141
- <action>
142
- <operation>
143
- <type>
144
- <code value="update"/>
145
- </type>
146
- <resource value="ValueSet"/>
147
- <description value="Create ValueSet extensional-case-2."/>
148
- <accept value="xml"/>
149
- <params value="/extensional-case-2"/>
150
- <sourceId value="extensional-case-2"/>
151
- </operation>
152
- </action>
153
- <action>
154
- <assert>
155
- <operator value="in"/>
156
- <responseCode value="200,201"/>
157
- </assert>
158
- </action>
159
-
160
- <action>
161
- <operation>
162
- <type>
163
- <code value="update"/>
164
- </type>
165
- <resource value="ValueSet"/>
166
- <description value="Create ValueSet extensional-case-3."/>
167
- <accept value="xml"/>
168
- <params value="/extensional-case-3"/>
169
- <sourceId value="extensional-case-3"/>
170
- </operation>
171
- </action>
172
- <action>
173
- <assert>
174
- <operator value="in"/>
175
- <responseCode value="200,201"/>
176
- </assert>
177
- </action>
178
-
179
- <action>
180
- <operation>
181
- <type>
182
- <code value="update"/>
183
- </type>
184
- <resource value="ValueSet"/>
185
- <description value="Create ValueSet extensional-case-4."/>
186
- <accept value="xml"/>
187
- <params value="/extensional-case-4"/>
188
- <sourceId value="extensional-case-4"/>
189
- </operation>
190
- </action>
191
- <action>
192
- <assert>
193
- <operator value="in"/>
194
- <responseCode value="200,201"/>
195
- </assert>
196
- </action>
197
-
198
- <action>
199
- <operation>
200
- <type>
201
- <code value="update"/>
202
- </type>
203
- <resource value="ValueSet"/>
204
- <description value="Create ValueSet intensional-case-1."/>
205
- <accept value="xml"/>
206
- <params value="/intensional-case-1"/>
207
- <sourceId value="intensional-case-1"/>
208
- </operation>
209
- </action>
210
- <action>
211
- <assert>
212
- <operator value="in"/>
213
- <responseCode value="200,201"/>
214
- </assert>
215
- </action>
216
-
217
- <action>
218
- <operation>
219
- <type>
220
- <code value="update"/>
221
- </type>
222
- <resource value="ValueSet"/>
223
- <description value="Create ValueSet intensional-case-2."/>
224
- <accept value="xml"/>
225
- <params value="/intensional-case-2"/>
226
- <sourceId value="intensional-case-2"/>
227
- </operation>
228
- </action>
229
- <action>
230
- <assert>
231
- <operator value="in"/>
232
- <responseCode value="200,201"/>
233
- </assert>
234
- </action>
235
-
236
- <action>
237
- <operation>
238
- <type>
239
- <code value="update"/>
240
- </type>
241
- <resource value="ValueSet"/>
242
- <description value="Create ValueSet intensional-case-3."/>
243
- <accept value="xml"/>
244
- <params value="/intensional-case-3"/>
245
- <sourceId value="intensional-case-3"/>
246
- </operation>
247
- </action>
248
- <action>
249
- <assert>
250
- <operator value="in"/>
251
- <responseCode value="200,201"/>
252
- </assert>
253
- </action>
254
- </setup>
255
- -->
256
- <test id="3-1-a-ValidateExtensionalCase1">
257
- <name value="Test 3-1-a Validate extensional-case-1 valid"/>
258
- <description value="Check that the code {http://hl7.org/fhir/patient-contact-relationship}emergency is in the value set."/>
259
-
260
- <action>
261
- <operation>
262
- <type>
263
- <code value="$validate-code"/>
264
- </type>
265
- <resource value="ValueSet"/>
266
- <description value="Test $validate-code operation on ValueSet extensional-case-1 for a valid code."/>
267
- <accept value="xml"/>
268
- <encodeRequestUrl value="false"/>
269
- <params value="/extensional-case-1/$validate-code?system=http://hl7.org/fhir/patient-contact-relationship&amp;code=emergency"/>
270
- </operation>
271
- </action>
272
- <action>
273
- <assert>
274
- <description value="Confirm that the returned HTTP status is 200(OK)."/>
275
- <response value="okay"/>
276
- <warningOnly value="true"/>
277
- </assert>
278
- </action>
279
- <action>
280
- <assert>
281
- <description value="Confirm that the returned format is XML."/>
282
- <contentType value="xml"/>
283
- <warningOnly value="true"/>
284
- </assert>
285
- </action>
286
- <action>
287
- <assert>
288
- <description value="Confirm that the returned resource type is Parameters."/>
289
- <resource value="Parameters"/>
290
- <warningOnly value="true"/>
291
- </assert>
292
- </action>
293
- <action>
294
- <assert>
295
- <description value="Confirm that the returned Parameters minimally contains the information in suite3-valid-min."/>
296
- <minimumId value="suite3-valid-min"/>
297
- </assert>
298
- </action>
299
- </test>
300
-
301
- <test id="3-1-b-ValidateExtensionalCase1">
302
- <name value="Test 3-1-b Validate extensional-case-1 invalid system"/>
303
- <description value="Check that the code {http://hl7.org/fhir/patient-contact-relationshipX}emergency is not in the value set."/>
304
-
305
- <action>
306
- <operation>
307
- <type>
308
- <code value="$validate-code"/>
309
- </type>
310
- <resource value="ValueSet"/>
311
- <description value="Test $validate-code operation on ValueSet extensional-case-1 for an invalid code."/>
312
- <accept value="xml"/>
313
- <encodeRequestUrl value="false"/>
314
- <params value="/extensional-case-1/$validate-code?system=http://hl7.org/fhir/patient-contact-relationshipX&amp;code=emergency"/>
315
- </operation>
316
- </action>
317
- <action>
318
- <assert>
319
- <description value="Confirm that the returned HTTP status is 200(OK)."/>
320
- <response value="okay"/>
321
- <warningOnly value="true"/>
322
- </assert>
323
- </action>
324
- <action>
325
- <assert>
326
- <description value="Confirm that the returned format is XML."/>
327
- <contentType value="xml"/>
328
- <warningOnly value="true"/>
329
- </assert>
330
- </action>
331
- <action>
332
- <assert>
333
- <description value="Confirm that the returned resource type is Parameters."/>
334
- <resource value="Parameters"/>
335
- <warningOnly value="true"/>
336
- </assert>
337
- </action>
338
- <action>
339
- <assert>
340
- <description value="Confirm that the returned Parameters minimally contains the information in suite3-invalid-min."/>
341
- <minimumId value="suite3-invalid-min"/>
342
- </assert>
343
- </action>
344
- </test>
345
-
346
- <test id="3-1-c-ValidateExtensionalCase1">
347
- <name value="Test 3-1-c Validate extensional-case-1 invalid code"/>
348
- <description value="Check that the code {http://hl7.org/fhir/patient-contact-relationship}emergencyX is not in the value set."/>
349
-
350
- <action>
351
- <operation>
352
- <type>
353
- <code value="$validate-code"/>
354
- </type>
355
- <resource value="ValueSet"/>
356
- <description value="Test $validate-code operation on ValueSet extensional-case-1 for an invalid code."/>
357
- <accept value="xml"/>
358
- <encodeRequestUrl value="false"/>
359
- <params value="/extensional-case-1/$validate-code?system=http://hl7.org/fhir/patient-contact-relationship&amp;code=emergencyX"/>
360
- </operation>
361
- </action>
362
- <action>
363
- <assert>
364
- <description value="Confirm that the returned HTTP status is 200(OK)."/>
365
- <response value="okay"/>
366
- <warningOnly value="true"/>
367
- </assert>
368
- </action>
369
- <action>
370
- <assert>
371
- <description value="Confirm that the returned format is XML."/>
372
- <contentType value="xml"/>
373
- <warningOnly value="true"/>
374
- </assert>
375
- </action>
376
- <action>
377
- <assert>
378
- <description value="Confirm that the returned resource type is Parameters."/>
379
- <resource value="Parameters"/>
380
- <warningOnly value="true"/>
381
- </assert>
382
- </action>
383
- <action>
384
- <assert>
385
- <description value="Confirm that the returned Parameters minimally contains the information in suite3-invalid-min."/>
386
- <minimumId value="suite3-invalid-min"/>
387
- </assert>
388
- </action>
389
- </test>
390
-
391
- <test id="3-2-a-ValidateExtensionalCase2">
392
- <name value="Test 3-2-a Validate extensional-case-2 valid"/>
393
- <description value="Check that the code {http://loinc.org}11378-7 'Systolic blood pressure at First encounter' is in the value set."/>
394
-
395
- <action>
396
- <operation>
397
- <type>
398
- <code value="$validate-code"/>
399
- </type>
400
- <resource value="ValueSet"/>
401
- <description value="Test $validate-code operation on ValueSet extensional-case-2 for a valid code."/>
402
- <accept value="xml"/>
403
- <encodeRequestUrl value="false"/>
404
- <params value="/extensional-case-2/$validate-code?system=http://loinc.org&amp;code=11378-7&amp;display=Systolic%20blood%20pressure%20at%20First%20encounter"/>
405
- </operation>
406
- </action>
407
- <action>
408
- <assert>
409
- <description value="Confirm that the returned HTTP status is 200(OK)."/>
410
- <response value="okay"/>
411
- <warningOnly value="true"/>
412
- </assert>
413
- </action>
414
- <action>
415
- <assert>
416
- <description value="Confirm that the returned format is XML."/>
417
- <contentType value="xml"/>
418
- <warningOnly value="true"/>
419
- </assert>
420
- </action>
421
- <action>
422
- <assert>
423
- <description value="Confirm that the returned resource type is Parameters."/>
424
- <resource value="Parameters"/>
425
- <warningOnly value="true"/>
426
- </assert>
427
- </action>
428
- <action>
429
- <assert>
430
- <description value="Confirm that the returned Parameters minimally contains the information in suite3-valid-min."/>
431
- <minimumId value="suite3-valid-min"/>
432
- </assert>
433
- </action>
434
- </test>
435
-
436
- <test id="3-2-b-ValidateExtensionalCase2">
437
- <name value="Test 3-2-b Validate extensional-case-2 valid code invalid display"/>
438
- <description value="Check that the code {http://loinc.org}11378-7 'Systolic blood pressure at First encounter' is in the value set, but supply a wrong display."/>
439
-
440
- <action>
441
- <operation>
442
- <type>
443
- <code value="$validate-code"/>
444
- </type>
445
- <resource value="ValueSet"/>
446
- <description value="Test $validate-code operation on ValueSet extensional-case-2 for an invalid display."/>
447
- <accept value="xml"/>
448
- <encodeRequestUrl value="false"/>
449
- <params value="/extensional-case-2/$validate-code?system=http://loinc.org&amp;code=11378-7&amp;display=Systolic%20blood%20pressure%20at%20First%20encounterX"/>
450
- </operation>
451
- </action>
452
- <action>
453
- <assert>
454
- <description value="Confirm that the returned HTTP status is 200(OK)."/>
455
- <response value="okay"/>
456
- <warningOnly value="true"/>
457
- </assert>
458
- </action>
459
- <action>
460
- <assert>
461
- <description value="Confirm that the returned format is XML."/>
462
- <contentType value="xml"/>
463
- <warningOnly value="true"/>
464
- </assert>
465
- </action>
466
- <action>
467
- <assert>
468
- <description value="Confirm that the returned resource type is Parameters."/>
469
- <resource value="Parameters"/>
470
- <warningOnly value="true"/>
471
- </assert>
472
- </action>
473
- <action>
474
- <assert>
475
- <description value="Confirm that the returned Parameters minimally contains the information in suite3-invalid-min."/>
476
- <minimumId value="suite3-invalid-min"/>
477
- </assert>
478
- </action>
479
- </test>
480
-
481
- <test id="3-2-c-ValidateExtensionalCase2">
482
- <name value="Test 3-2-c Validate extensional-case-2 invalid system"/>
483
- <description value="Check that the code {http://loinc.orgX}11378-7 'Systolic blood pressure at First encounter' is not in the value set."/>
484
-
485
- <action>
486
- <operation>
487
- <type>
488
- <code value="$validate-code"/>
489
- </type>
490
- <resource value="ValueSet"/>
491
- <description value="Test $validate-code operation on ValueSet extensional-case-2 for a code not in the value set."/>
492
- <accept value="xml"/>
493
- <encodeRequestUrl value="false"/>
494
- <params value="/extensional-case-2/$validate-code?system=http://loinc.orgX&amp;code=11378-7"/>
495
- </operation>
496
- </action>
497
- <action>
498
- <assert>
499
- <description value="Confirm that the returned HTTP status is 200(OK)."/>
500
- <response value="okay"/>
501
- <warningOnly value="true"/>
502
- </assert>
503
- </action>
504
- <action>
505
- <assert>
506
- <description value="Confirm that the returned format is XML."/>
507
- <contentType value="xml"/>
508
- <warningOnly value="true"/>
509
- </assert>
510
- </action>
511
- <action>
512
- <assert>
513
- <description value="Confirm that the returned resource type is Parameters."/>
514
- <resource value="Parameters"/>
515
- <warningOnly value="true"/>
516
- </assert>
517
- </action>
518
- <action>
519
- <assert>
520
- <description value="Confirm that the returned Parameters minimally contains the information in suite3-invalid-min."/>
521
- <minimumId value="suite3-invalid-min"/>
522
- </assert>
523
- </action>
524
- </test>
525
-
526
- <test id="3-2-d-ValidateExtensionalCase2">
527
- <name value="Test 3-2-d Validate extensional-case-2 invalid code"/>
528
- <description value="Check that the code {http://loinc.org}11378-7X 'Systolic blood pressure at First encounter' is not in the value set."/>
529
-
530
- <action>
531
- <operation>
532
- <type>
533
- <code value="$validate-code"/>
534
- </type>
535
- <resource value="ValueSet"/>
536
- <description value="Test $validate-code operation on ValueSet extensional-case-2 for a code not in the value set."/>
537
- <accept value="xml"/>
538
- <encodeRequestUrl value="false"/>
539
- <params value="/extensional-case-2/$validate-code?system=http://loinc.org&amp;code=11378-7X"/>
540
- </operation>
541
- </action>
542
- <action>
543
- <assert>
544
- <description value="Confirm that the returned HTTP status is 200(OK)."/>
545
- <response value="okay"/>
546
- <warningOnly value="true"/>
547
- </assert>
548
- </action>
549
- <action>
550
- <assert>
551
- <description value="Confirm that the returned format is XML."/>
552
- <contentType value="xml"/>
553
- <warningOnly value="true"/>
554
- </assert>
555
- </action>
556
- <action>
557
- <assert>
558
- <description value="Confirm that the returned resource type is Parameters."/>
559
- <resource value="Parameters"/>
560
- <warningOnly value="true"/>
561
- </assert>
562
- </action>
563
- <action>
564
- <assert>
565
- <description value="Confirm that the returned Parameters minimally contains the information in suite3-invalid-min."/>
566
- <minimumId value="suite3-invalid-min"/>
567
- </assert>
568
- </action>
569
- </test>
570
-
571
- <test id="3-2-e-ValidateExtensionalCase2">
572
- <name value="Test 3-2-e Validate extensional-case-2 valid code not in valid set"/>
573
- <description value="Check that the code {http://loinc.org}13457-7 is not in the value set."/>
574
-
575
- <action>
576
- <operation>
577
- <type>
578
- <code value="$validate-code"/>
579
- </type>
580
- <resource value="ValueSet"/>
581
- <description value="Test $validate-code operation on ValueSet extensional-case-2 for a code not in the value set."/>
582
- <accept value="xml"/>
583
- <encodeRequestUrl value="false"/>
584
- <params value="/extensional-case-2/$validate-code?system=http://loinc.org&amp;code=13457-7"/>
585
- </operation>
586
- </action>
587
- <action>
588
- <assert>
589
- <description value="Confirm that the returned HTTP status is 200(OK)."/>
590
- <response value="okay"/>
591
- <warningOnly value="true"/>
592
- </assert>
593
- </action>
594
- <action>
595
- <assert>
596
- <description value="Confirm that the returned format is XML."/>
597
- <contentType value="xml"/>
598
- <warningOnly value="true"/>
599
- </assert>
600
- </action>
601
- <action>
602
- <assert>
603
- <description value="Confirm that the returned resource type is Parameters."/>
604
- <resource value="Parameters"/>
605
- <warningOnly value="true"/>
606
- </assert>
607
- </action>
608
- <action>
609
- <assert>
610
- <description value="Confirm that the returned Parameters minimally contains the information in suite3-invalid-min."/>
611
- <minimumId value="suite3-invalid-min"/>
612
- </assert>
613
- </action>
614
- </test>
615
-
616
- <test id="3-3-a-ValidateExtensionalCase3">
617
- <name value="Test 3-3-a Validate extensional-case-3 valid"/>
618
- <description value="Check that the code {http://snomed.info/sct}371037005 'Systolic dysfunction' is in the value set."/>
619
-
620
- <action>
621
- <operation>
622
- <type>
623
- <code value="$validate-code"/>
624
- </type>
625
- <resource value="ValueSet"/>
626
- <description value="Test $validate-code operation on ValueSet extensional-case-3 for a valid code."/>
627
- <accept value="xml"/>
628
- <encodeRequestUrl value="false"/>
629
- <params value="/extensional-case-3/$validate-code?system=http://snomed.info/sct&amp;code=371037005&amp;display=Systolic%20dysfunction"/>
630
- </operation>
631
- </action>
632
- <action>
633
- <assert>
634
- <description value="Confirm that the returned HTTP status is 200(OK)."/>
635
- <response value="okay"/>
636
- <warningOnly value="true"/>
637
- </assert>
638
- </action>
639
- <action>
640
- <assert>
641
- <description value="Confirm that the returned format is XML."/>
642
- <contentType value="xml"/>
643
- <warningOnly value="true"/>
644
- </assert>
645
- </action>
646
- <action>
647
- <assert>
648
- <description value="Confirm that the returned resource type is Parameters."/>
649
- <resource value="Parameters"/>
650
- <warningOnly value="true"/>
651
- </assert>
652
- </action>
653
- <action>
654
- <assert>
655
- <description value="Confirm that the returned Parameters minimally contains the information in suite3-valid-min."/>
656
- <minimumId value="suite3-valid-min"/>
657
- </assert>
658
- </action>
659
- </test>
660
-
661
- <test id="3-3-b-ValidateExtensionalCase3">
662
- <name value="Test 3-3-b Validate extensional-case-3 valid code invalid display"/>
663
- <description value="Check that the code {http://snomed.info/sct}371037005 'Systolic dysfunction' is in the value set, but give the wrong display."/>
664
-
665
- <action>
666
- <operation>
667
- <type>
668
- <code value="$validate-code"/>
669
- </type>
670
- <resource value="ValueSet"/>
671
- <description value="Test $validate-code operation on ValueSet extensional-case-3 for an invalid display."/>
672
- <accept value="xml"/>
673
- <encodeRequestUrl value="false"/>
674
- <params value="/extensional-case-3/$validate-code?system=http://snomed.info/sct&amp;code=371037005&amp;display=Systolic%20dysfunctionX"/>
675
- </operation>
676
- </action>
677
- <action>
678
- <assert>
679
- <description value="Confirm that the returned HTTP status is 200(OK)."/>
680
- <response value="okay"/>
681
- <warningOnly value="true"/>
682
- </assert>
683
- </action>
684
- <action>
685
- <assert>
686
- <description value="Confirm that the returned format is XML."/>
687
- <contentType value="xml"/>
688
- <warningOnly value="true"/>
689
- </assert>
690
- </action>
691
- <action>
692
- <assert>
693
- <description value="Confirm that the returned resource type is Parameters."/>
694
- <resource value="Parameters"/>
695
- <warningOnly value="true"/>
696
- </assert>
697
- </action>
698
- <action>
699
- <assert>
700
- <description value="Confirm that the returned Parameters minimally contains the information in suite3-invalid-min."/>
701
- <minimumId value="suite3-invalid-min"/>
702
- </assert>
703
- </action>
704
- </test>
705
-
706
- <test id="3-3-c-ValidateExtensionalCase3">
707
- <name value="Test 3-3-c Validate extensional-case-3 invalid system"/>
708
- <description value="Check that the code {http://snomed.info/sctX}371037005 is not in the value set."/>
709
-
710
- <action>
711
- <operation>
712
- <type>
713
- <code value="$validate-code"/>
714
- </type>
715
- <resource value="ValueSet"/>
716
- <description value="Test $validate-code operation on ValueSet extensional-case-3 for a code not in the value set."/>
717
- <accept value="xml"/>
718
- <encodeRequestUrl value="false"/>
719
- <params value="/extensional-case-3/$validate-code?system=http://snomed.info/sctX&amp;code=371037005"/>
720
- </operation>
721
- </action>
722
- <action>
723
- <assert>
724
- <description value="Confirm that the returned HTTP status is 200(OK)."/>
725
- <response value="okay"/>
726
- <warningOnly value="true"/>
727
- </assert>
728
- </action>
729
- <action>
730
- <assert>
731
- <description value="Confirm that the returned format is XML."/>
732
- <contentType value="xml"/>
733
- <warningOnly value="true"/>
734
- </assert>
735
- </action>
736
- <action>
737
- <assert>
738
- <description value="Confirm that the returned resource type is Parameters."/>
739
- <resource value="Parameters"/>
740
- <warningOnly value="true"/>
741
- </assert>
742
- </action>
743
- <action>
744
- <assert>
745
- <description value="Confirm that the returned Parameters minimally contains the information in suite3-invalid-min."/>
746
- <minimumId value="suite3-invalid-min"/>
747
- </assert>
748
- </action>
749
- </test>
750
-
751
- <test id="3-3-d-ValidateExtensionalCase3">
752
- <name value="Test 3-3-d Validate extensional-case-3 invalid code"/>
753
- <description value="Check that the code {http://snomed.info/sct}371037005X is not in the value set."/>
754
-
755
- <action>
756
- <operation>
757
- <type>
758
- <code value="$validate-code"/>
759
- </type>
760
- <resource value="ValueSet"/>
761
- <description value="Test $validate-code operation on ValueSet extensional-case-3 for a code not in the value set."/>
762
- <accept value="xml"/>
763
- <encodeRequestUrl value="false"/>
764
- <params value="/extensional-case-3/$validate-code?system=http://snomed.info/sct&amp;code=371037005X"/>
765
- </operation>
766
- </action>
767
- <action>
768
- <assert>
769
- <description value="Confirm that the returned HTTP status is 200(OK)."/>
770
- <response value="okay"/>
771
- <warningOnly value="true"/>
772
- </assert>
773
- </action>
774
- <action>
775
- <assert>
776
- <description value="Confirm that the returned format is XML."/>
777
- <contentType value="xml"/>
778
- <warningOnly value="true"/>
779
- </assert>
780
- </action>
781
- <action>
782
- <assert>
783
- <description value="Confirm that the returned resource type is Parameters."/>
784
- <resource value="Parameters"/>
785
- <warningOnly value="true"/>
786
- </assert>
787
- </action>
788
- <action>
789
- <assert>
790
- <description value="Confirm that the returned Parameters minimally contains the information in suite3-invalid-min."/>
791
- <minimumId value="suite3-invalid-min"/>
792
- </assert>
793
- </action>
794
- </test>
795
-
796
- <test id="3-3-e-ValidateExtensionalCase3">
797
- <name value="Test 3-3-e Validate extensional-case-3 valid code not in valid set"/>
798
- <description value="Check that the code {http://snomed.info/sct}102261002 is not in the value set."/>
799
-
800
- <action>
801
- <operation>
802
- <type>
803
- <code value="$validate-code"/>
804
- </type>
805
- <resource value="ValueSet"/>
806
- <description value="Test $validate-code operation on ValueSet extensional-case-3 for a code not in the value set."/>
807
- <accept value="xml"/>
808
- <encodeRequestUrl value="false"/>
809
- <params value="/extensional-case-3/$validate-code?system=http://snomed.info/sct&amp;code=102261002"/>
810
- </operation>
811
- </action>
812
- <action>
813
- <assert>
814
- <description value="Confirm that the returned HTTP status is 200(OK)."/>
815
- <response value="okay"/>
816
- <warningOnly value="true"/>
817
- </assert>
818
- </action>
819
- <action>
820
- <assert>
821
- <description value="Confirm that the returned format is XML."/>
822
- <contentType value="xml"/>
823
- <warningOnly value="true"/>
824
- </assert>
825
- </action>
826
- <action>
827
- <assert>
828
- <description value="Confirm that the returned resource type is Parameters."/>
829
- <resource value="Parameters"/>
830
- <warningOnly value="true"/>
831
- </assert>
832
- </action>
833
- <action>
834
- <assert>
835
- <description value="Confirm that the returned Parameters minimally contains the information in suite3-invalid-min."/>
836
- <minimumId value="suite3-invalid-min"/>
837
- </assert>
838
- </action>
839
- </test>
840
-
841
- <test id="3-4-a-ValidateExtensionalCase4">
842
- <name value="Test 3-4-a Validate extensional-case-4 valid"/>
843
- <description value="Check that the code {http://hl7.org/fhir/v3/RoleCode}CHILD 'child' is in the value set."/>
844
-
845
- <action>
846
- <operation>
847
- <type>
848
- <code value="$validate-code"/>
849
- </type>
850
- <resource value="ValueSet"/>
851
- <description value="Test $validate-code operation on ValueSet extensional-case-4 for a valid code."/>
852
- <accept value="xml"/>
853
- <encodeRequestUrl value="false"/>
854
- <params value="/extensional-case-4/$validate-code?system=http://hl7.org/fhir/v3/RoleCode&amp;code=CHILD&amp;display=child"/>
855
- </operation>
856
- </action>
857
- <action>
858
- <assert>
859
- <description value="Confirm that the returned HTTP status is 200(OK)."/>
860
- <response value="okay"/>
861
- <warningOnly value="true"/>
862
- </assert>
863
- </action>
864
- <action>
865
- <assert>
866
- <description value="Confirm that the returned format is XML."/>
867
- <contentType value="xml"/>
868
- <warningOnly value="true"/>
869
- </assert>
870
- </action>
871
- <action>
872
- <assert>
873
- <description value="Confirm that the returned resource type is Parameters."/>
874
- <resource value="Parameters"/>
875
- <warningOnly value="true"/>
876
- </assert>
877
- </action>
878
- <action>
879
- <assert>
880
- <description value="Confirm that the returned Parameters minimally contains the information in suite3-valid-min."/>
881
- <minimumId value="suite3-valid-min"/>
882
- </assert>
883
- </action>
884
- </test>
885
-
886
- <test id="3-4-b-ValidateExtensionalCase4">
887
- <name value="Test 3-4-b Validate extensional-case-4 valid code invalid display"/>
888
- <description value="Check that the code {http://hl7.org/fhir/v3/RoleCode}CHILD 'child' is in the value set, but give the wrong display."/>
889
-
890
- <action>
891
- <operation>
892
- <type>
893
- <code value="$validate-code"/>
894
- </type>
895
- <resource value="ValueSet"/>
896
- <description value="Test $validate-code operation on ValueSet extensional-case-4 for an invalid display."/>
897
- <accept value="xml"/>
898
- <encodeRequestUrl value="false"/>
899
- <params value="/extensional-case-4/$validate-code?system=http://hl7.org/fhir/v3/RoleCode&amp;code=CHILD&amp;display=childX"/>
900
- </operation>
901
- </action>
902
- <action>
903
- <assert>
904
- <description value="Confirm that the returned HTTP status is 200(OK)."/>
905
- <response value="okay"/>
906
- <warningOnly value="true"/>
907
- </assert>
908
- </action>
909
- <action>
910
- <assert>
911
- <description value="Confirm that the returned format is XML."/>
912
- <contentType value="xml"/>
913
- <warningOnly value="true"/>
914
- </assert>
915
- </action>
916
- <action>
917
- <assert>
918
- <description value="Confirm that the returned resource type is Parameters."/>
919
- <resource value="Parameters"/>
920
- <warningOnly value="true"/>
921
- </assert>
922
- </action>
923
- <action>
924
- <assert>
925
- <description value="Confirm that the returned Parameters minimally contains the information in suite3-invalid-min."/>
926
- <minimumId value="suite3-invalid-min"/>
927
- </assert>
928
- </action>
929
- </test>
930
-
931
- <test id="3-4-c-ValidateExtensionalCase4">
932
- <name value="Test 3-4-c Validate extensional-case-4 invalid system"/>
933
- <description value="Check that the code {http://hl7.org/fhir/v3/RoleCodeX}CHILD is not in the value set."/>
934
-
935
- <action>
936
- <operation>
937
- <type>
938
- <code value="$validate-code"/>
939
- </type>
940
- <resource value="ValueSet"/>
941
- <description value="Test $validate-code operation on ValueSet extensional-case-4 for a code not in the value set."/>
942
- <accept value="xml"/>
943
- <encodeRequestUrl value="false"/>
944
- <params value="/extensional-case-4/$validate-code?system=http://hl7.org/fhir/v3/RoleCodeX&amp;code=CHILD"/>
945
- </operation>
946
- </action>
947
- <action>
948
- <assert>
949
- <description value="Confirm that the returned HTTP status is 200(OK)."/>
950
- <response value="okay"/>
951
- <warningOnly value="true"/>
952
- </assert>
953
- </action>
954
- <action>
955
- <assert>
956
- <description value="Confirm that the returned format is XML."/>
957
- <contentType value="xml"/>
958
- <warningOnly value="true"/>
959
- </assert>
960
- </action>
961
- <action>
962
- <assert>
963
- <description value="Confirm that the returned resource type is Parameters."/>
964
- <resource value="Parameters"/>
965
- <warningOnly value="true"/>
966
- </assert>
967
- </action>
968
- <action>
969
- <assert>
970
- <description value="Confirm that the returned Parameters minimally contains the information in suite3-invalid-min."/>
971
- <minimumId value="suite3-invalid-min"/>
972
- </assert>
973
- </action>
974
- </test>
975
-
976
- <test id="3-4-d-ValidateExtensionalCase4">
977
- <name value="Test 3-4-d Validate extensional-case-4 invalid code"/>
978
- <description value="Check that the code {http://hl7.org/fhir/v3/RoleCode}child is not in the value set (note: this coding system is case sensitive, so 'CHILD' is valid, but 'child' is not."/>
979
-
980
- <action>
981
- <operation>
982
- <type>
983
- <code value="$validate-code"/>
984
- </type>
985
- <resource value="ValueSet"/>
986
- <description value="Test $validate-code operation on ValueSet extensional-case-4 for a code not in the value set."/>
987
- <accept value="xml"/>
988
- <encodeRequestUrl value="false"/>
989
- <params value="/extensional-case-4/$validate-code?system=http://hl7.org/fhir/v3/RoleCode&amp;code=child"/>
990
- </operation>
991
- </action>
992
- <action>
993
- <assert>
994
- <description value="Confirm that the returned HTTP status is 200(OK)."/>
995
- <response value="okay"/>
996
- <warningOnly value="true"/>
997
- </assert>
998
- </action>
999
- <action>
1000
- <assert>
1001
- <description value="Confirm that the returned format is XML."/>
1002
- <contentType value="xml"/>
1003
- <warningOnly value="true"/>
1004
- </assert>
1005
- </action>
1006
- <action>
1007
- <assert>
1008
- <description value="Confirm that the returned resource type is Parameters."/>
1009
- <resource value="Parameters"/>
1010
- <warningOnly value="true"/>
1011
- </assert>
1012
- </action>
1013
- <action>
1014
- <assert>
1015
- <description value="Confirm that the returned Parameters minimally contains the information in suite3-invalid-min."/>
1016
- <minimumId value="suite3-invalid-min"/>
1017
- </assert>
1018
- </action>
1019
- </test>
1020
-
1021
- <test id="3-4-e-ValidateExtensionalCase4">
1022
- <name value="Test 3-4-e Validate extensional-case-4 valid code not in valid set"/>
1023
- <description value="Check that the code {http://hl7.org/fhir/v3/RoleCode}FULLINS is not in the value set."/>
1024
-
1025
- <action>
1026
- <operation>
1027
- <type>
1028
- <code value="$validate-code"/>
1029
- </type>
1030
- <resource value="ValueSet"/>
1031
- <description value="Test $validate-code operation on ValueSet extensional-case-4 for a code not in the value set."/>
1032
- <accept value="xml"/>
1033
- <encodeRequestUrl value="false"/>
1034
- <params value="/extensional-case-4/$validate-code?system=http://hl7.org/fhir/v3/RoleCode&amp;code=FULLINS"/>
1035
- </operation>
1036
- </action>
1037
- <action>
1038
- <assert>
1039
- <description value="Confirm that the returned HTTP status is 200(OK)."/>
1040
- <response value="okay"/>
1041
- <warningOnly value="true"/>
1042
- </assert>
1043
- </action>
1044
- <action>
1045
- <assert>
1046
- <description value="Confirm that the returned format is XML."/>
1047
- <contentType value="xml"/>
1048
- <warningOnly value="true"/>
1049
- </assert>
1050
- </action>
1051
- <action>
1052
- <assert>
1053
- <description value="Confirm that the returned resource type is Parameters."/>
1054
- <resource value="Parameters"/>
1055
- <warningOnly value="true"/>
1056
- </assert>
1057
- </action>
1058
- <action>
1059
- <assert>
1060
- <description value="Confirm that the returned Parameters minimally contains the information in suite3-invalid-min."/>
1061
- <minimumId value="suite3-invalid-min"/>
1062
- </assert>
1063
- </action>
1064
- </test>
1065
-
1066
- <test id="3-5-a-ValidateIntensionalCase1">
1067
- <name value="Test 3-5-a Validate intensional-case-1 valid"/>
1068
- <description value="Check that the code {http://loinc.org}11377-9 'Diastolic blood pressure at First encounter' is in the value set."/>
1069
-
1070
- <action>
1071
- <operation>
1072
- <type>
1073
- <code value="$validate-code"/>
1074
- </type>
1075
- <resource value="ValueSet"/>
1076
- <description value="Test $validate-code operation on ValueSet intensional-case-1 for a valid code."/>
1077
- <accept value="xml"/>
1078
- <encodeRequestUrl value="false"/>
1079
- <params value="/intensional-case-1/$validate-code?system=http://loinc.org&amp;code=11377-9&amp;display=Diastolic%20blood%20pressure%20at%20First%20encounter"/>
1080
- </operation>
1081
- </action>
1082
- <action>
1083
- <assert>
1084
- <description value="Confirm that the returned HTTP status is 200(OK)."/>
1085
- <response value="okay"/>
1086
- <warningOnly value="true"/>
1087
- </assert>
1088
- </action>
1089
- <action>
1090
- <assert>
1091
- <description value="Confirm that the returned format is XML."/>
1092
- <contentType value="xml"/>
1093
- <warningOnly value="true"/>
1094
- </assert>
1095
- </action>
1096
- <action>
1097
- <assert>
1098
- <description value="Confirm that the returned resource type is Parameters."/>
1099
- <resource value="Parameters"/>
1100
- <warningOnly value="true"/>
1101
- </assert>
1102
- </action>
1103
- <action>
1104
- <assert>
1105
- <description value="Confirm that the returned Parameters minimally contains the information in suite3-valid-min."/>
1106
- <minimumId value="suite3-valid-min"/>
1107
- </assert>
1108
- </action>
1109
- </test>
1110
-
1111
- <test id="3-5-b-ValidateIntensionalCase1">
1112
- <name value="Test 3-5-b Validate intensional-case-1 valid code invalid display"/>
1113
- <description value="Check that the code {http://loinc.org}11377-9 'Diastolic blood pressure at First encounter' is in the value set, but supply a wrong display."/>
1114
-
1115
- <action>
1116
- <operation>
1117
- <type>
1118
- <code value="$validate-code"/>
1119
- </type>
1120
- <resource value="ValueSet"/>
1121
- <description value="Test $validate-code operation on ValueSet intensional-case-1 for an invalid display."/>
1122
- <accept value="xml"/>
1123
- <encodeRequestUrl value="false"/>
1124
- <params value="/intensional-case-1/$validate-code?system=http://loinc.org&amp;code=11377-9&amp;display=Diastolic%20blood%20pressure%20at%20First%20encounterX"/>
1125
- </operation>
1126
- </action>
1127
- <action>
1128
- <assert>
1129
- <description value="Confirm that the returned HTTP status is 200(OK)."/>
1130
- <response value="okay"/>
1131
- <warningOnly value="true"/>
1132
- </assert>
1133
- </action>
1134
- <action>
1135
- <assert>
1136
- <description value="Confirm that the returned format is XML."/>
1137
- <contentType value="xml"/>
1138
- <warningOnly value="true"/>
1139
- </assert>
1140
- </action>
1141
- <action>
1142
- <assert>
1143
- <description value="Confirm that the returned resource type is Parameters."/>
1144
- <resource value="Parameters"/>
1145
- <warningOnly value="true"/>
1146
- </assert>
1147
- </action>
1148
- <action>
1149
- <assert>
1150
- <description value="Confirm that the returned Parameters minimally contains the information in suite3-invalid-min."/>
1151
- <minimumId value="suite3-invalid-min"/>
1152
- </assert>
1153
- </action>
1154
- </test>
1155
-
1156
- <test id="3-5-c-ValidateIntensionalCase1">
1157
- <name value="Test 3-5-c Validate intensional-case-1 invalid system"/>
1158
- <description value="Check that the code {http://loinc.orgX}11377-9 is not in the value set."/>
1159
-
1160
- <action>
1161
- <operation>
1162
- <type>
1163
- <code value="$validate-code"/>
1164
- </type>
1165
- <resource value="ValueSet"/>
1166
- <description value="Test $validate-code operation on ValueSet intensional-case-1 for a code not in the value set."/>
1167
- <accept value="xml"/>
1168
- <encodeRequestUrl value="false"/>
1169
- <params value="/intensional-case-1/$validate-code?system=http://loinc.orgX&amp;code=11377-9"/>
1170
- </operation>
1171
- </action>
1172
- <action>
1173
- <assert>
1174
- <description value="Confirm that the returned HTTP status is 200(OK)."/>
1175
- <response value="okay"/>
1176
- <warningOnly value="true"/>
1177
- </assert>
1178
- </action>
1179
- <action>
1180
- <assert>
1181
- <description value="Confirm that the returned format is XML."/>
1182
- <contentType value="xml"/>
1183
- <warningOnly value="true"/>
1184
- </assert>
1185
- </action>
1186
- <action>
1187
- <assert>
1188
- <description value="Confirm that the returned resource type is Parameters."/>
1189
- <resource value="Parameters"/>
1190
- <warningOnly value="true"/>
1191
- </assert>
1192
- </action>
1193
- <action>
1194
- <assert>
1195
- <description value="Confirm that the returned Parameters minimally contains the information in suite3-invalid-min."/>
1196
- <minimumId value="suite3-invalid-min"/>
1197
- </assert>
1198
- </action>
1199
- </test>
1200
-
1201
- <test id="3-5-d-ValidateIntensionalCase1">
1202
- <name value="Test 3-5-d Validate intensional-case-1 invalid code"/>
1203
- <description value="Check that the code {http://loinc.org}11377-9X is not in the value set."/>
1204
-
1205
- <action>
1206
- <operation>
1207
- <type>
1208
- <code value="$validate-code"/>
1209
- </type>
1210
- <resource value="ValueSet"/>
1211
- <description value="Test $validate-code operation on ValueSet intensional-case-1 for a code not in the value set."/>
1212
- <accept value="xml"/>
1213
- <encodeRequestUrl value="false"/>
1214
- <params value="/intensional-case-1/$validate-code?system=http://loinc.org&amp;code=11377-9X"/>
1215
- </operation>
1216
- </action>
1217
- <action>
1218
- <assert>
1219
- <description value="Confirm that the returned HTTP status is 200(OK)."/>
1220
- <response value="okay"/>
1221
- <warningOnly value="true"/>
1222
- </assert>
1223
- </action>
1224
- <action>
1225
- <assert>
1226
- <description value="Confirm that the returned format is XML."/>
1227
- <contentType value="xml"/>
1228
- <warningOnly value="true"/>
1229
- </assert>
1230
- </action>
1231
- <action>
1232
- <assert>
1233
- <description value="Confirm that the returned resource type is Parameters."/>
1234
- <resource value="Parameters"/>
1235
- <warningOnly value="true"/>
1236
- </assert>
1237
- </action>
1238
- <action>
1239
- <assert>
1240
- <description value="Confirm that the returned Parameters minimally contains the information in suite3-invalid-min."/>
1241
- <minimumId value="suite3-invalid-min"/>
1242
- </assert>
1243
- </action>
1244
- </test>
1245
-
1246
- <test id="3-5-e-ValidateIntensionalCase1">
1247
- <name value="Test 3-5-e Validate intensional-case-1 valid code not in valid set"/>
1248
- <description value="Check that the code {http://loinc.org}13457-7 is not in the value set."/>
1249
-
1250
- <action>
1251
- <operation>
1252
- <type>
1253
- <code value="$validate-code"/>
1254
- </type>
1255
- <resource value="ValueSet"/>
1256
- <description value="Test $validate-code operation on ValueSet intensional-case-1 for a code not in the value set."/>
1257
- <accept value="xml"/>
1258
- <encodeRequestUrl value="false"/>
1259
- <params value="/intensional-case-1/$validate-code?system=http://loinc.org&amp;code=13457-7"/>
1260
- </operation>
1261
- </action>
1262
- <action>
1263
- <assert>
1264
- <description value="Confirm that the returned HTTP status is 200(OK)."/>
1265
- <response value="okay"/>
1266
- <warningOnly value="true"/>
1267
- </assert>
1268
- </action>
1269
- <action>
1270
- <assert>
1271
- <description value="Confirm that the returned format is XML."/>
1272
- <contentType value="xml"/>
1273
- <warningOnly value="true"/>
1274
- </assert>
1275
- </action>
1276
- <action>
1277
- <assert>
1278
- <description value="Confirm that the returned resource type is Parameters."/>
1279
- <resource value="Parameters"/>
1280
- <warningOnly value="true"/>
1281
- </assert>
1282
- </action>
1283
- <action>
1284
- <assert>
1285
- <description value="Confirm that the returned Parameters minimally contains the information in suite3-invalid-min."/>
1286
- <minimumId value="suite3-invalid-min"/>
1287
- </assert>
1288
- </action>
1289
- </test>
1290
-
1291
- <test id="3-6-a-ValidateIntensionalCase2">
1292
- <name value="Test 3-6-a Validate intensional-case-2 valid"/>
1293
- <description value="Check that the code {http://snomed.info/sct}8762007 'Chronic hypertension in obstetric context (disorder)' is in the value set."/>
1294
-
1295
- <action>
1296
- <operation>
1297
- <type>
1298
- <code value="$validate-code"/>
1299
- </type>
1300
- <resource value="ValueSet"/>
1301
- <description value="Test $validate-code operation on ValueSet intensional-case-2 for a valid code."/>
1302
- <accept value="xml"/>
1303
- <encodeRequestUrl value="false"/>
1304
- <params value="/intensional-case-2/$validate-code?system=http://snomed.info/sct&amp;code=8762007&amp;display=Chronic%20hypertension%20in%20obstetric%20context%20(disorder)"/>
1305
- </operation>
1306
- </action>
1307
- <action>
1308
- <assert>
1309
- <description value="Confirm that the returned HTTP status is 200(OK)."/>
1310
- <response value="okay"/>
1311
- <warningOnly value="true"/>
1312
- </assert>
1313
- </action>
1314
- <action>
1315
- <assert>
1316
- <description value="Confirm that the returned format is XML."/>
1317
- <contentType value="xml"/>
1318
- <warningOnly value="true"/>
1319
- </assert>
1320
- </action>
1321
- <action>
1322
- <assert>
1323
- <description value="Confirm that the returned resource type is Parameters."/>
1324
- <resource value="Parameters"/>
1325
- <warningOnly value="true"/>
1326
- </assert>
1327
- </action>
1328
- <action>
1329
- <assert>
1330
- <description value="Confirm that the returned Parameters minimally contains the information in suite3-valid-min."/>
1331
- <minimumId value="suite3-valid-min"/>
1332
- </assert>
1333
- </action>
1334
- </test>
1335
-
1336
- <test id="3-6-b-ValidateIntensionalCase2">
1337
- <name value="Test 3-6-b Validate intensional-case-2 valid code invalid display"/>
1338
- <description value="Check that the code {http://snomed.info/sct}8762007 'Chronic hypertension in obstetric context (disorder)' is in the value set, but give the wrong display."/>
1339
-
1340
- <action>
1341
- <operation>
1342
- <type>
1343
- <code value="$validate-code"/>
1344
- </type>
1345
- <resource value="ValueSet"/>
1346
- <description value="Test $validate-code operation on ValueSet intensional-case-2 for an invalid display."/>
1347
- <accept value="xml"/>
1348
- <encodeRequestUrl value="false"/>
1349
- <params value="/intensional-case-2/$validate-code?system=http://snomed.info/sct&amp;code=8762007&amp;display=Chronic%20hypertension%20in%20obstetric%20context%20(disorder)X"/>
1350
- </operation>
1351
- </action>
1352
- <action>
1353
- <assert>
1354
- <description value="Confirm that the returned HTTP status is 200(OK)."/>
1355
- <response value="okay"/>
1356
- <warningOnly value="true"/>
1357
- </assert>
1358
- </action>
1359
- <action>
1360
- <assert>
1361
- <description value="Confirm that the returned format is XML."/>
1362
- <contentType value="xml"/>
1363
- <warningOnly value="true"/>
1364
- </assert>
1365
- </action>
1366
- <action>
1367
- <assert>
1368
- <description value="Confirm that the returned resource type is Parameters."/>
1369
- <resource value="Parameters"/>
1370
- <warningOnly value="true"/>
1371
- </assert>
1372
- </action>
1373
- <action>
1374
- <assert>
1375
- <description value="Confirm that the returned Parameters minimally contains the information in suite3-invalid-min."/>
1376
- <minimumId value="suite3-invalid-min"/>
1377
- </assert>
1378
- </action>
1379
- </test>
1380
-
1381
- <test id="3-6-c-ValidateIntensionalCase2">
1382
- <name value="Test 3-6-c Validate intensional-case-2 invalid system"/>
1383
- <description value="Check that the code {http://snomed.info/sctX}8762007 is not in the value set."/>
1384
-
1385
- <action>
1386
- <operation>
1387
- <type>
1388
- <code value="$validate-code"/>
1389
- </type>
1390
- <resource value="ValueSet"/>
1391
- <description value="Test $validate-code operation on ValueSet intensional-case-2 for a code not in the value set."/>
1392
- <accept value="xml"/>
1393
- <encodeRequestUrl value="false"/>
1394
- <params value="/intensional-case-2/$validate-code?system=http://snomed.info/sctX&amp;code=8762007"/>
1395
- </operation>
1396
- </action>
1397
- <action>
1398
- <assert>
1399
- <description value="Confirm that the returned HTTP status is 200(OK)."/>
1400
- <response value="okay"/>
1401
- <warningOnly value="true"/>
1402
- </assert>
1403
- </action>
1404
- <action>
1405
- <assert>
1406
- <description value="Confirm that the returned format is XML."/>
1407
- <contentType value="xml"/>
1408
- <warningOnly value="true"/>
1409
- </assert>
1410
- </action>
1411
- <action>
1412
- <assert>
1413
- <description value="Confirm that the returned resource type is Parameters."/>
1414
- <resource value="Parameters"/>
1415
- <warningOnly value="true"/>
1416
- </assert>
1417
- </action>
1418
- <action>
1419
- <assert>
1420
- <description value="Confirm that the returned Parameters minimally contains the information in suite3-invalid-min."/>
1421
- <minimumId value="suite3-invalid-min"/>
1422
- </assert>
1423
- </action>
1424
- </test>
1425
-
1426
- <test id="3-6-d-ValidateIntensionalCase2">
1427
- <name value="Test 3-6-d Validate intensional-case-2 invalid code"/>
1428
- <description value="Check that the code {http://snomed.info/sct}8762007X is not in the value set."/>
1429
-
1430
- <action>
1431
- <operation>
1432
- <type>
1433
- <code value="$validate-code"/>
1434
- </type>
1435
- <resource value="ValueSet"/>
1436
- <description value="Test $validate-code operation on ValueSet intensional-case-2 for a code not in the value set."/>
1437
- <accept value="xml"/>
1438
- <encodeRequestUrl value="false"/>
1439
- <params value="/intensional-case-2/$validate-code?system=http://snomed.info/sct&amp;code=8762007X"/>
1440
- </operation>
1441
- </action>
1442
- <action>
1443
- <assert>
1444
- <description value="Confirm that the returned HTTP status is 200(OK)."/>
1445
- <response value="okay"/>
1446
- <warningOnly value="true"/>
1447
- </assert>
1448
- </action>
1449
- <action>
1450
- <assert>
1451
- <description value="Confirm that the returned format is XML."/>
1452
- <contentType value="xml"/>
1453
- <warningOnly value="true"/>
1454
- </assert>
1455
- </action>
1456
- <action>
1457
- <assert>
1458
- <description value="Confirm that the returned resource type is Parameters."/>
1459
- <resource value="Parameters"/>
1460
- <warningOnly value="true"/>
1461
- </assert>
1462
- </action>
1463
- <action>
1464
- <assert>
1465
- <description value="Confirm that the returned Parameters minimally contains the information in suite3-invalid-min."/>
1466
- <minimumId value="suite3-invalid-min"/>
1467
- </assert>
1468
- </action>
1469
- </test>
1470
-
1471
- <test id="3-6-e-ValidateIntensionalCase2">
1472
- <name value="Test 3-6-e Validate intensional-case-2 valid code not in valid set"/>
1473
- <description value="Check that the code {http://snomed.info/sct}102261002 is not in the value set."/>
1474
-
1475
- <action>
1476
- <operation>
1477
- <type>
1478
- <code value="$validate-code"/>
1479
- </type>
1480
- <resource value="ValueSet"/>
1481
- <description value="Test $validate-code operation on ValueSet intensional-case-2 for a code not in the value set."/>
1482
- <accept value="xml"/>
1483
- <encodeRequestUrl value="false"/>
1484
- <params value="/intensional-case-2/$validate-code?system=http://snomed.info/sct&amp;code=102261002"/>
1485
- </operation>
1486
- </action>
1487
- <action>
1488
- <assert>
1489
- <description value="Confirm that the returned HTTP status is 200(OK)."/>
1490
- <response value="okay"/>
1491
- <warningOnly value="true"/>
1492
- </assert>
1493
- </action>
1494
- <action>
1495
- <assert>
1496
- <description value="Confirm that the returned format is XML."/>
1497
- <contentType value="xml"/>
1498
- <warningOnly value="true"/>
1499
- </assert>
1500
- </action>
1501
- <action>
1502
- <assert>
1503
- <description value="Confirm that the returned resource type is Parameters."/>
1504
- <resource value="Parameters"/>
1505
- <warningOnly value="true"/>
1506
- </assert>
1507
- </action>
1508
- <action>
1509
- <assert>
1510
- <description value="Confirm that the returned Parameters minimally contains the information in suite3-invalid-min."/>
1511
- <minimumId value="suite3-invalid-min"/>
1512
- </assert>
1513
- </action>
1514
- </test>
1515
-
1516
- <test id="3-7-a-ValidateIntensionalCase3">
1517
- <name value="Test 3-7-a Validate intensional-case-3 valid"/>
1518
- <description value="Check that the code {http://snomed.info/sct}8762007 'Chronic hypertension in obstetric context (disorder)' is in the value set."/>
1519
-
1520
- <action>
1521
- <operation>
1522
- <type>
1523
- <code value="$validate-code"/>
1524
- </type>
1525
- <resource value="ValueSet"/>
1526
- <description value="Test $validate-code operation on ValueSet intensional-case-3 for a valid code."/>
1527
- <accept value="xml"/>
1528
- <encodeRequestUrl value="false"/>
1529
- <params value="/intensional-case-3/$validate-code?system=http://snomed.info/sct&amp;code=8762007&amp;display=Chronic%20hypertension%20in%20obstetric%20context%20(disorder)"/>
1530
- </operation>
1531
- </action>
1532
- <action>
1533
- <assert>
1534
- <description value="Confirm that the returned HTTP status is 200(OK)."/>
1535
- <response value="okay"/>
1536
- <warningOnly value="true"/>
1537
- </assert>
1538
- </action>
1539
- <action>
1540
- <assert>
1541
- <description value="Confirm that the returned format is XML."/>
1542
- <contentType value="xml"/>
1543
- <warningOnly value="true"/>
1544
- </assert>
1545
- </action>
1546
- <action>
1547
- <assert>
1548
- <description value="Confirm that the returned resource type is Parameters."/>
1549
- <resource value="Parameters"/>
1550
- <warningOnly value="true"/>
1551
- </assert>
1552
- </action>
1553
- <action>
1554
- <assert>
1555
- <description value="Confirm that the returned Parameters minimally contains the information in suite3-valid-min."/>
1556
- <minimumId value="suite3-valid-min"/>
1557
- </assert>
1558
- </action>
1559
- </test>
1560
-
1561
- <test id="3-7-b-ValidateIntensionalCase3">
1562
- <name value="Test 3-7-b Validate intensional-case-3 valid code invalid display"/>
1563
- <description value="Check that the code {http://snomed.info/sct}8762007 'Chronic hypertension in obstetric context (disorder)' is in the value set, but give the wrong display."/>
1564
-
1565
- <action>
1566
- <operation>
1567
- <type>
1568
- <code value="$validate-code"/>
1569
- </type>
1570
- <resource value="ValueSet"/>
1571
- <description value="Test $validate-code operation on ValueSet intensional-case-3 for an invalid display."/>
1572
- <accept value="xml"/>
1573
- <encodeRequestUrl value="false"/>
1574
- <params value="/intensional-case-3/$validate-code?system=http://snomed.info/sct&amp;code=8762007&amp;display=Chronic%20hypertension%20in%20obstetric%20context%20(disorder)X"/>
1575
- </operation>
1576
- </action>
1577
- <action>
1578
- <assert>
1579
- <description value="Confirm that the returned HTTP status is 200(OK)."/>
1580
- <response value="okay"/>
1581
- <warningOnly value="true"/>
1582
- </assert>
1583
- </action>
1584
- <action>
1585
- <assert>
1586
- <description value="Confirm that the returned format is XML."/>
1587
- <contentType value="xml"/>
1588
- <warningOnly value="true"/>
1589
- </assert>
1590
- </action>
1591
- <action>
1592
- <assert>
1593
- <description value="Confirm that the returned resource type is Parameters."/>
1594
- <resource value="Parameters"/>
1595
- <warningOnly value="true"/>
1596
- </assert>
1597
- </action>
1598
- <action>
1599
- <assert>
1600
- <description value="Confirm that the returned Parameters minimally contains the information in suite3-invalid-min."/>
1601
- <minimumId value="suite3-invalid-min"/>
1602
- </assert>
1603
- </action>
1604
- </test>
1605
-
1606
- <test id="3-7-c-ValidateIntensionalCase3">
1607
- <name value="Test 3-7-c Validate intensional-case-3 invalid system"/>
1608
- <description value="Check that the code {http://snomed.info/sctX}8762007 is not in the value set."/>
1609
-
1610
- <action>
1611
- <operation>
1612
- <type>
1613
- <code value="$validate-code"/>
1614
- </type>
1615
- <resource value="ValueSet"/>
1616
- <description value="Test $validate-code operation on ValueSet intensional-case-3 for a code not in the value set."/>
1617
- <accept value="xml"/>
1618
- <encodeRequestUrl value="false"/>
1619
- <params value="/intensional-case-3/$validate-code?system=http://snomed.info/sctX&amp;code=8762007"/>
1620
- </operation>
1621
- </action>
1622
- <action>
1623
- <assert>
1624
- <description value="Confirm that the returned HTTP status is 200(OK)."/>
1625
- <response value="okay"/>
1626
- <warningOnly value="true"/>
1627
- </assert>
1628
- </action>
1629
- <action>
1630
- <assert>
1631
- <description value="Confirm that the returned format is XML."/>
1632
- <contentType value="xml"/>
1633
- <warningOnly value="true"/>
1634
- </assert>
1635
- </action>
1636
- <action>
1637
- <assert>
1638
- <description value="Confirm that the returned resource type is Parameters."/>
1639
- <resource value="Parameters"/>
1640
- <warningOnly value="true"/>
1641
- </assert>
1642
- </action>
1643
- <action>
1644
- <assert>
1645
- <description value="Confirm that the returned Parameters minimally contains the information in suite3-invalid-min."/>
1646
- <minimumId value="suite3-invalid-min"/>
1647
- </assert>
1648
- </action>
1649
- </test>
1650
-
1651
- <test id="3-7-d-ValidateIntensionalCase3">
1652
- <name value="Test 3-7-d Validate intensional-case-3 invalid code"/>
1653
- <description value="Check that the code {http://snomed.info/sct}8762007X is not in the value set."/>
1654
-
1655
- <action>
1656
- <operation>
1657
- <type>
1658
- <code value="$validate-code"/>
1659
- </type>
1660
- <resource value="ValueSet"/>
1661
- <description value="Test $validate-code operation on ValueSet intensional-case-3 for a code not in the value set."/>
1662
- <accept value="xml"/>
1663
- <encodeRequestUrl value="false"/>
1664
- <params value="/intensional-case-3/$validate-code?system=http://snomed.info/sct&amp;code=8762007X"/>
1665
- </operation>
1666
- </action>
1667
- <action>
1668
- <assert>
1669
- <description value="Confirm that the returned HTTP status is 200(OK)."/>
1670
- <response value="okay"/>
1671
- <warningOnly value="true"/>
1672
- </assert>
1673
- </action>
1674
- <action>
1675
- <assert>
1676
- <description value="Confirm that the returned format is XML."/>
1677
- <contentType value="xml"/>
1678
- <warningOnly value="true"/>
1679
- </assert>
1680
- </action>
1681
- <action>
1682
- <assert>
1683
- <description value="Confirm that the returned resource type is Parameters."/>
1684
- <resource value="Parameters"/>
1685
- <warningOnly value="true"/>
1686
- </assert>
1687
- </action>
1688
- <action>
1689
- <assert>
1690
- <description value="Confirm that the returned Parameters minimally contains the information in suite3-invalid-min."/>
1691
- <minimumId value="suite3-invalid-min"/>
1692
- </assert>
1693
- </action>
1694
- </test>
1695
-
1696
- <test id="3-7-e-ValidateIntensionalCase3">
1697
- <name value="Test 3-7-e Validate intensional-case-3 valid code not in valid set"/>
1698
- <description value="Check that the code {http://snomed.info/sct}102261002 is not in the value set."/>
1699
-
1700
- <action>
1701
- <operation>
1702
- <type>
1703
- <code value="$validate-code"/>
1704
- </type>
1705
- <resource value="ValueSet"/>
1706
- <description value="Test $validate-code operation on ValueSet intensional-case-3 for a code not in the value set."/>
1707
- <accept value="xml"/>
1708
- <encodeRequestUrl value="false"/>
1709
- <params value="/intensional-case-3/$validate-code?system=http://snomed.info/sct&amp;code=102261002"/>
1710
- </operation>
1711
- </action>
1712
- <action>
1713
- <assert>
1714
- <description value="Confirm that the returned HTTP status is 200(OK)."/>
1715
- <response value="okay"/>
1716
- <warningOnly value="true"/>
1717
- </assert>
1718
- </action>
1719
- <action>
1720
- <assert>
1721
- <description value="Confirm that the returned format is XML."/>
1722
- <contentType value="xml"/>
1723
- <warningOnly value="true"/>
1724
- </assert>
1725
- </action>
1726
- <action>
1727
- <assert>
1728
- <description value="Confirm that the returned resource type is Parameters."/>
1729
- <resource value="Parameters"/>
1730
- <warningOnly value="true"/>
1731
- </assert>
1732
- </action>
1733
- <action>
1734
- <assert>
1735
- <description value="Confirm that the returned Parameters minimally contains the information in suite3-invalid-min."/>
1736
- <minimumId value="suite3-invalid-min"/>
1737
- </assert>
1738
- </action>
1739
- </test>
1740
- <!--
1741
- <teardown>
1742
- <action>
1743
- <operation>
1744
- <type>
1745
- <code value="delete"/>
1746
- </type>
1747
- <resource value="ValueSet"/>
1748
- <params value="/extensional-case-1"/>
1749
- </operation>
1750
- </action>
1751
- <action>
1752
- <operation>
1753
- <type>
1754
- <code value="delete"/>
1755
- </type>
1756
- <resource value="ValueSet"/>
1757
- <params value="/extensional-case-2"/>
1758
- </operation>
1759
- </action>
1760
- <action>
1761
- <operation>
1762
- <type>
1763
- <code value="delete"/>
1764
- </type>
1765
- <resource value="ValueSet"/>
1766
- <params value="/extensional-case-3"/>
1767
- </operation>
1768
- </action>
1769
- <action>
1770
- <operation>
1771
- <type>
1772
- <code value="delete"/>
1773
- </type>
1774
- <resource value="ValueSet"/>
1775
- <params value="/extensional-case-4"/>
1776
- </operation>
1777
- </action>
1778
- <action>
1779
- <operation>
1780
- <type>
1781
- <code value="delete"/>
1782
- </type>
1783
- <resource value="ValueSet"/>
1784
- <params value="/intensional-case-1"/>
1785
- </operation>
1786
- </action>
1787
- <action>
1788
- <operation>
1789
- <type>
1790
- <code value="delete"/>
1791
- </type>
1792
- <resource value="ValueSet"/>
1793
- <params value="/intensional-case-2"/>
1794
- </operation>
1795
- </action>
1796
- <action>
1797
- <operation>
1798
- <type>
1799
- <code value="delete"/>
1800
- </type>
1801
- <resource value="ValueSet"/>
1802
- <params value="/intensional-case-3"/>
1803
- </operation>
1804
- </action>
1805
- </teardown>
1806
- -->
1807
- </TestScript>