davinci_pas_test_kit 0.15.1 → 0.15.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/config/presets/pas_client_example.json +2 -2
  3. data/config/presets/pas_client_v201_run_against_pas_server.json +2 -2
  4. data/config/presets/pas_client_v221_run_against_pas_server.json +3 -3
  5. data/config/presets/pas_ri.json +6 -6
  6. data/config/presets/pas_server_v201_run_against_pas_client.json.erb +6 -6
  7. data/config/presets/pas_server_v221_run_against_pas_client.json.erb +10 -10
  8. data/lib/davinci_pas_test_kit/client/abstract_gather_must_support_test.rb +2 -48
  9. data/lib/davinci_pas_test_kit/client/client_input_descriptions.rb +29 -0
  10. data/lib/davinci_pas_test_kit/client/endpoints/claim_endpoint.rb +25 -9
  11. data/lib/davinci_pas_test_kit/client/user_input_response.rb +25 -6
  12. data/lib/davinci_pas_test_kit/client/v2.0.1/client_suite.rb +1 -1
  13. data/lib/davinci_pas_test_kit/client/v2.2.1/client_suite.rb +1 -1
  14. data/lib/davinci_pas_test_kit/cross_suite/fhirpath_utils.rb +13 -3
  15. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/beneficiary/metadata.yml +4 -0
  16. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/claim_inquiry/metadata.yml +15 -0
  17. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/claim_update/metadata.yml +17 -0
  18. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/claiminquiryresponse/metadata.yml +15 -0
  19. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/claimresponse/metadata.yml +15 -0
  20. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/communication_request/metadata.yml +4 -0
  21. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/coverage/metadata.yml +1 -0
  22. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/device_request/metadata.yml +2 -0
  23. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/encounter/metadata.yml +3 -0
  24. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/insurer/metadata.yml +1 -0
  25. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/medication_request/metadata.yml +2 -0
  26. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/metadata.yml +143 -0
  27. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/nutrition_order/metadata.yml +2 -0
  28. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/pas_inquiry_request_bundle/metadata.yml +2 -0
  29. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/pas_inquiry_response_bundle/metadata.yml +2 -0
  30. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/pas_request_bundle/metadata.yml +2 -0
  31. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/pas_response_bundle/metadata.yml +2 -0
  32. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/practitioner/metadata.yml +1 -0
  33. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/practitioner_role/metadata.yml +1 -0
  34. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/requestor/metadata.yml +1 -0
  35. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/service_request/metadata.yml +3 -0
  36. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/subscriber/metadata.yml +4 -0
  37. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/task/metadata.yml +1 -0
  38. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/beneficiary/metadata.yml +1 -0
  39. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/claim_inquiry/metadata.yml +23 -0
  40. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/claim_update/metadata.yml +31 -0
  41. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/claiminquiryresponse/metadata.yml +42 -0
  42. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/claimresponse/metadata.yml +42 -0
  43. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/communication_request/metadata.yml +4 -0
  44. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/coverage/metadata.yml +1 -0
  45. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/device_request/metadata.yml +2 -0
  46. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/encounter/metadata.yml +3 -0
  47. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/insurer/metadata.yml +1 -0
  48. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/medication_request/metadata.yml +2 -0
  49. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/metadata.yml +265 -0
  50. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/nutrition_order/metadata.yml +2 -0
  51. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/pas_inquiry_request_bundle/metadata.yml +2 -0
  52. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/pas_inquiry_response_bundle/metadata.yml +2 -0
  53. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/pas_request_bundle/metadata.yml +2 -0
  54. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/pas_response_bundle/metadata.yml +2 -0
  55. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/practitioner/metadata.yml +1 -0
  56. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/practitioner_role/metadata.yml +1 -0
  57. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/requestor/metadata.yml +1 -0
  58. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/service_request/metadata.yml +3 -0
  59. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/subscriber/metadata.yml +1 -0
  60. data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/task/metadata.yml +4 -0
  61. data/lib/davinci_pas_test_kit/cross_suite/pas_bundle_validation.rb +97 -39
  62. data/lib/davinci_pas_test_kit/cross_suite/pas_constants.rb +6 -0
  63. data/lib/davinci_pas_test_kit/cross_suite/pas_datatype_constraints.rb +166 -0
  64. data/lib/davinci_pas_test_kit/cross_suite/response_selection_utils.rb +26 -10
  65. data/lib/davinci_pas_test_kit/cross_suite/validator_suppressions.rb +206 -146
  66. data/lib/davinci_pas_test_kit/docs/demo/PAS Client Suite Demonstration.postman_collection.json +4 -4
  67. data/lib/davinci_pas_test_kit/generator/must_support_test_generator.rb +6 -0
  68. data/lib/davinci_pas_test_kit/generator/pas_must_support_metadata_extractor.rb +1 -2
  69. data/lib/davinci_pas_test_kit/generator/server_must_support_group_generator.rb +23 -0
  70. data/lib/davinci_pas_test_kit/generator/server_suite_generator.rb +6 -0
  71. data/lib/davinci_pas_test_kit/generator/templates/must_support.rb.erb +3 -2
  72. data/lib/davinci_pas_test_kit/generator/templates/server_must_support_group.rb.erb +22 -0
  73. data/lib/davinci_pas_test_kit/generator/templates/server_suite.rb.erb +4 -5
  74. data/lib/davinci_pas_test_kit/generator/templates/use_case_group.rb.erb +3 -0
  75. data/lib/davinci_pas_test_kit/generator/use_case_group_generator.rb +14 -8
  76. data/lib/davinci_pas_test_kit/requirements/generated/davinci_pas_server_suite_v221_requirements_coverage.csv +28 -28
  77. data/lib/davinci_pas_test_kit/server/generated/v2.0.1/pas_server_approval_use_case_group.rb +1 -0
  78. data/lib/davinci_pas_test_kit/server/generated/v2.0.1/pas_server_denial_use_case_group.rb +1 -0
  79. data/lib/davinci_pas_test_kit/server/generated/v2.0.1/pas_server_pended_use_case_group.rb +1 -0
  80. data/lib/davinci_pas_test_kit/server/generated/v2.0.1/server_suite.rb +4 -5
  81. data/lib/davinci_pas_test_kit/server/generated/v2.2.1/claiminquiryresponse/server_inquire_response_must_support_claiminquiryresponse_test.rb +2 -0
  82. data/lib/davinci_pas_test_kit/server/generated/v2.2.1/claimresponse/server_submit_response_must_support_claimresponse_test.rb +2 -0
  83. data/lib/davinci_pas_test_kit/server/generated/v2.2.1/pas_server_approval_use_case_group.rb +2 -0
  84. data/lib/davinci_pas_test_kit/server/generated/v2.2.1/pas_server_denial_use_case_group.rb +2 -0
  85. data/lib/davinci_pas_test_kit/server/generated/v2.2.1/pas_server_must_support_group.rb +12 -0
  86. data/lib/davinci_pas_test_kit/server/generated/v2.2.1/pas_server_pended_use_case_group.rb +5 -0
  87. data/lib/davinci_pas_test_kit/server/generated/v2.2.1/server_suite.rb +4 -5
  88. data/lib/davinci_pas_test_kit/server/server_response_bundle_validation_test.rb +14 -5
  89. data/lib/davinci_pas_test_kit/server/v2.2.1/claim_inquiry/server_claim_inquiry_response_tests.rb +89 -0
  90. data/lib/davinci_pas_test_kit/server/v2.2.1/pas_error_group.rb +2 -0
  91. data/lib/davinci_pas_test_kit/server/v2.2.1/pas_server_claim_inquiry_responses_group.rb +17 -0
  92. data/lib/davinci_pas_test_kit/server/v2.2.1/pas_server_no_custom_extensions_test.rb +241 -0
  93. data/lib/davinci_pas_test_kit/server/v2.2.1/pas_server_subscription_capability_statement_test.rb +40 -0
  94. data/lib/davinci_pas_test_kit/server/v2.2.1/pas_server_subscription_setup.rb +14 -9
  95. data/lib/davinci_pas_test_kit/server/v2.2.1/server_replaced_pa_inquire_reference_input_test.rb +63 -0
  96. data/lib/davinci_pas_test_kit/server/v2.2.1/server_replaced_pa_inquire_reference_test.rb +109 -0
  97. data/lib/davinci_pas_test_kit/version.rb +2 -2
  98. metadata +9 -2
@@ -56,7 +56,7 @@
56
56
  ],
57
57
  "body": {
58
58
  "mode": "raw",
59
- "raw": "{\n \"resourceType\": \"Bundle\",\n \"id\": \"ReferralAuthorizationBundleExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-pas-request-bundle\"\n ]\n },\n \"identifier\": {\n \"system\": \"http://notreal.com/SUBMITTER_TRANSACTION_IDENTIFIER\",\n \"value\": \"A12345\"\n },\n \"type\": \"collection\",\n \"timestamp\": \"2005-05-02T11:01:00+05:00\",\n \"entry\": [\n {\n \"fullUrl\": \"http://notreal.com/fhir/Claim/ReferralAuthorizationExample\",\n \"resource\": {\n \"resourceType\": \"Claim\",\n \"id\": \"ReferralAuthorizationExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-claim\"\n ]\n },\n \"text\": {\n \"status\": \"extensions\",\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p><b>Generated Narrative: Claim</b><a name=\\\"ReferralAuthorizationExample\\\"> </a></p><div style=\\\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\\\"><p style=\\\"margin-bottom: 0px\\\">Resource Claim &quot;ReferralAuthorizationExample&quot; </p><p style=\\\"margin-bottom: 0px\\\">Profile: <a href=\\\"StructureDefinition-profile-claim.html\\\">PAS Claim</a></p></div><p><b>LevelOfServiceCode</b>: Urgent <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (1338#U)</span></p><p><b>identifier</b>: id:\\u00a0111099</p><p><b>status</b>: active</p><p><b>type</b>: Professional <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (<a href=\\\"http://terminology.hl7.org/5.0.0/CodeSystem-claim-type.html\\\">Claim Type Codes</a>#professional)</span></p><p><b>use</b>: preauthorization</p><p><b>patient</b>: Patient/SubscriberExample</p><p><b>created</b>: 2005-05-02 11:01:00+0500</p><p><b>insurer</b>: Organization/InsurerExample</p><p><b>provider</b>: Organization/UMOExample</p><p><b>priority</b>: Normal <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (<a href=\\\"http://terminology.hl7.org/5.0.0/CodeSystem-processpriority.html\\\">Process Priority Codes</a>#normal)</span></p><h3>CareTeams</h3><table class=\\\"grid\\\"><tr><td style=\\\"display: none\\\">-</td><td><b>Extension</b></td><td><b>Sequence</b></td><td><b>Provider</b></td></tr><tr><td style=\\\"display: none\\\">*</td><td/><td>1</td><td>PractitionerRole/ReferralPractitionerRoleExample</td></tr></table><h3>Diagnoses</h3><table class=\\\"grid\\\"><tr><td style=\\\"display: none\\\">-</td><td><b>Extension</b></td><td><b>Sequence</b></td><td><b>Diagnosis[x]</b></td></tr><tr><td style=\\\"display: none\\\">*</td><td/><td>1</td><td>G89.4 <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (<a href=\\\"http://terminology.hl7.org/5.0.0/CodeSystem-icd10CM.html\\\">International Classification of Diseases, 10th Revision, Clinical Modification (ICD-10-CM)</a>#G89.4)</span></td></tr></table><h3>Insurances</h3><table class=\\\"grid\\\"><tr><td style=\\\"display: none\\\">-</td><td><b>Sequence</b></td><td><b>Focal</b></td><td><b>Coverage</b></td></tr><tr><td style=\\\"display: none\\\">*</td><td>1</td><td>true</td><td>Coverage/InsuranceExample</td></tr></table><h3>Items</h3><table class=\\\"grid\\\"><tr><td style=\\\"display: none\\\">-</td><td><b>Extension</b></td><td><b>Sequence</b></td><td><b>CareTeamSequence</b></td><td><b>DiagnosisSequence</b></td><td><b>Category</b></td><td><b>ProductOrService</b></td><td><b>Location[x]</b></td></tr><tr><td style=\\\"display: none\\\">*</td><td>, , , , , , , , , </td><td>1</td><td>1</td><td>1</td><td>Consultation <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (1365#3)</span></td><td>Consultation <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (1365#3)</span></td><td>11 <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (<a href=\\\"http://terminology.hl7.org/5.0.0/CodeSystem-CMSPlaceofServiceCodes.html\\\">CMS Place of Service Codes (POS)</a>#11)</span></td></tr></table></div>\"\n },\n \"extension\": [\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-levelOfServiceCode\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/1338\",\n \"code\": \"U\",\n \"display\": \"Urgent\"\n }\n ]\n }\n }\n ],\n \"identifier\": [\n {\n \"extension\": [\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-identifierJurisdiction\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://www.usps.com/\",\n \"code\": \"MA\"\n }\n ]\n }\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-identifierSubDepartment\",\n \"valueString\": \"223412\"\n }\n ],\n \"system\": \"http://notreal.com/PATIENT_EVENT_TRACE_NUMBER\",\n \"value\": \"111099\",\n \"assigner\": {\n \"identifier\": {\n \"system\": \"http://notreal.com/USER_ASSIGNED\",\n \"value\": \"9012345678\"\n }\n }\n }\n ],\n \"status\": \"active\",\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/claim-type\",\n \"code\": \"professional\"\n }\n ]\n },\n \"use\": \"preauthorization\",\n \"patient\": {\n \"reference\": \"Patient/SubscriberExample\"\n },\n \"created\": \"2005-05-02T11:01:00+05:00\",\n \"insurer\": {\n \"reference\": \"Organization/InsurerExample\"\n },\n \"provider\": {\n \"reference\": \"Organization/UMOExample\"\n },\n \"priority\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/processpriority\",\n \"code\": \"normal\"\n }\n ]\n },\n \"careTeam\": [\n {\n \"extension\": [\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-careTeamClaimScope\",\n \"valueBoolean\": true\n }\n ],\n \"sequence\": 1,\n \"provider\": {\n \"reference\": \"PractitionerRole/ReferralPractitionerRoleExample\"\n }\n }\n ],\n \"diagnosis\": [\n {\n \"extension\": [\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-diagnosisRecordedDate\",\n \"valueDate\": \"2021-05-10\"\n }\n ],\n \"sequence\": 1,\n \"diagnosisCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"http://hl7.org/fhir/sid/icd-10-cm\",\n \"code\": \"G89.4\"\n }\n ]\n }\n }\n ],\n \"insurance\": [\n {\n \"sequence\": 1,\n \"focal\": true,\n \"coverage\": {\n \"reference\": \"Coverage/InsuranceExample\"\n }\n }\n ],\n \"item\": [\n {\n \"extension\": [\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-itemTraceNumber\",\n \"valueIdentifier\": {\n \"system\": \"http://notreal.com/ITEM_TRACE_NUMBER\",\n \"value\": \"1122334\"\n }\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-authorizationNumber\",\n \"valueString\": \"1122445\"\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-administrationReferenceNumber\",\n \"valueString\": \"9988311\"\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-serviceItemRequestType\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/1525\",\n \"code\": \"SC\",\n \"display\": \"Specialty Care Review\"\n }\n ]\n }\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-certificationType\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/1322\",\n \"code\": \"I\",\n \"display\": \"Initial\"\n }\n ]\n }\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-requestedService\",\n \"valueReference\": {\n \"reference\": \"ServiceRequest/ReferralRequestExample\"\n }\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-epsdtIndicator\",\n \"valueBoolean\": false\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-nursingHomeResidentialStatus\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/1345\",\n \"code\": \"2\",\n \"display\": \"Newly Admitted\"\n }\n ]\n }\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-nursingHomeLevelOfCare\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/1337\",\n \"code\": \"2\",\n \"display\": \"Intermediate Care Facility (ICF)\"\n }\n ]\n }\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-revenueUnitRateLimit\",\n \"valueDecimal\": 100\n }\n ],\n \"sequence\": 1,\n \"careTeamSequence\": [\n 1\n ],\n \"diagnosisSequence\": [\n 1\n ],\n \"category\": {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/1365\",\n \"code\": \"3\",\n \"display\": \"Consultation\"\n }\n ]\n },\n \"productOrService\": {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/1365\",\n \"code\": \"3\",\n \"display\": \"Consultation\"\n }\n ]\n },\n \"locationCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set\",\n \"code\": \"11\"\n }\n ]\n }\n }\n ]\n }\n },\n {\n \"fullUrl\": \"http://notreal.com/fhir/Organization/UMOExample\",\n \"resource\": {\n \"resourceType\": \"Organization\",\n \"id\": \"UMOExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-requestor\"\n ]\n },\n \"text\": {\n \"status\": \"generated\",\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p><b>Generated Narrative: Organization</b><a name=\\\"UMOExample\\\"> </a></p><div style=\\\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\\\"><p style=\\\"margin-bottom: 0px\\\">Resource Organization &quot;UMOExample&quot; </p><p style=\\\"margin-bottom: 0px\\\">Profile: <a href=\\\"StructureDefinition-profile-requestor.html\\\">PAS Requestor Organization</a></p></div><p><b>identifier</b>: id:\\u00a0&lt;a href=&quot;http://terminology.hl7.org/5.0.0/NamingSystem-npi.html&quot;&gt;NPI&lt;/a&gt;#8189991234</p><p><b>active</b>: true</p><p><b>type</b>: X3 <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (98#X3)</span></p><p><b>name</b>: DR. JOE SMITH CORPORATION</p><p><b>address</b>: 111 1ST STREET SAN DIEGO CA 92101 US </p></div>\"\n },\n \"identifier\": [\n {\n \"system\": \"http://hl7.org/fhir/sid/us-npi\",\n \"value\": \"8189991234\"\n }\n ],\n \"active\": true,\n \"type\": [\n {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/98\",\n \"code\": \"X3\"\n }\n ]\n }\n ],\n \"name\": \"DR. JOE SMITH CORPORATION\",\n \"address\": [\n {\n \"line\": [\n \"111 1ST STREET\"\n ],\n \"city\": \"SAN DIEGO\",\n \"state\": \"CA\",\n \"postalCode\": \"92101\",\n \"country\": \"US\"\n }\n ]\n }\n },\n {\n \"fullUrl\": \"http://notreal.com/fhir/Organization/InsurerExample\",\n \"resource\": {\n \"resourceType\": \"Organization\",\n \"id\": \"InsurerExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-insurer\"\n ]\n },\n \"text\": {\n \"status\": \"generated\",\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p><b>Generated Narrative: Organization</b><a name=\\\"InsurerExample\\\"> </a></p><div style=\\\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\\\"><p style=\\\"margin-bottom: 0px\\\">Resource Organization &quot;InsurerExample&quot; </p><p style=\\\"margin-bottom: 0px\\\">Profile: <a href=\\\"StructureDefinition-profile-insurer.html\\\">PAS Insurer Organization</a></p></div><p><b>identifier</b>: id:\\u00a0&lt;a href=&quot;http://terminology.hl7.org/5.0.0/NamingSystem-npi.html&quot;&gt;NPI&lt;/a&gt;#789312</p><p><b>active</b>: true</p><p><b>type</b>: PR <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (98#PR)</span></p><p><b>name</b>: MARYLAND CAPITAL INSURANCE COMPANY</p></div>\"\n },\n \"identifier\": [\n {\n \"system\": \"http://hl7.org/fhir/sid/us-npi\",\n \"value\": \"789312\"\n }\n ],\n \"active\": true,\n \"type\": [\n {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/98\",\n \"code\": \"PR\"\n }\n ]\n }\n ],\n \"name\": \"MARYLAND CAPITAL INSURANCE COMPANY\"\n }\n },\n {\n \"fullUrl\": \"http://notreal.com/fhir/Coverage/InsuranceExample\",\n \"resource\": {\n \"resourceType\": \"Coverage\",\n \"id\": \"InsuranceExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-coverage\"\n ]\n },\n \"text\": {\n \"status\": \"generated\",\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p><b>Generated Narrative: Coverage</b><a name=\\\"InsuranceExample\\\"> </a></p><div style=\\\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\\\"><p style=\\\"margin-bottom: 0px\\\">Resource Coverage &quot;InsuranceExample&quot; </p><p style=\\\"margin-bottom: 0px\\\">Profile: <a href=\\\"StructureDefinition-profile-coverage.html\\\">PAS Coverage</a></p></div><p><b>status</b>: active</p><p><b>beneficiary</b>: Patient/SubscriberExample</p><p><b>payor</b>: Organization/InsurerExample</p></div>\"\n },\n \"status\": \"active\",\n \"beneficiary\": {\n \"reference\": \"Patient/SubscriberExample\"\n },\n \"payor\": [\n {\n \"reference\": \"Organization/InsurerExample\"\n }\n ]\n }\n },\n {\n \"fullUrl\": \"http://notreal.com/fhir/Patient/SubscriberExample\",\n \"resource\": {\n \"resourceType\": \"Patient\",\n \"id\": \"SubscriberExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-subscriber\"\n ]\n },\n \"text\": {\n \"status\": \"extensions\",\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p><b>Generated Narrative: Patient</b><a name=\\\"SubscriberExample\\\"> </a></p><div style=\\\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\\\"><p style=\\\"margin-bottom: 0px\\\">Resource Patient &quot;SubscriberExample&quot; </p><p style=\\\"margin-bottom: 0px\\\">Profile: <a href=\\\"StructureDefinition-profile-subscriber.html\\\">PAS Subscriber Patient</a></p></div><p><b>MilitaryStatus</b>: RU <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (584#RU)</span></p><p><b>identifier</b>: id:\\u00a012345678901</p><p><b>name</b>: JOE SMITH </p><p><b>gender</b>: male</p></div>\"\n },\n \"extension\": [\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-militaryStatus\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/584\",\n \"code\": \"RU\"\n }\n ]\n }\n }\n ],\n \"identifier\": [\n {\n \"system\": \"http://notreal.com/MIN\",\n \"value\": \"12345678901\"\n }\n ],\n \"name\": [\n {\n \"family\": \"SMITH\",\n \"given\": [\n \"JOE\"\n ]\n }\n ],\n \"gender\": \"male\"\n }\n },\n {\n \"fullUrl\": \"http://notreal.com/fhir/ServiceRequest/ReferralRequestExample\",\n \"resource\": {\n \"resourceType\": \"ServiceRequest\",\n \"id\": \"ReferralRequestExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-servicerequest\"\n ]\n },\n \"text\": {\n \"status\": \"generated\",\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p><b>Generated Narrative: ServiceRequest</b><a name=\\\"ReferralRequestExample\\\"> </a></p><div style=\\\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\\\"><p style=\\\"margin-bottom: 0px\\\">Resource ServiceRequest &quot;ReferralRequestExample&quot; </p><p style=\\\"margin-bottom: 0px\\\">Profile: <a href=\\\"StructureDefinition-profile-servicerequest.html\\\">PAS Service Request</a></p></div><p><b>status</b>: active</p><p><b>intent</b>: order</p><p><b>code</b>: Consultation <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (1365#3)</span></p><p><b>quantity</b>: 1 visit<span style=\\\"background: LightGoldenRodYellow\\\"> (Details: UCUM code 1 = '1')</span></p><p><b>subject</b>: Patient/SubscriberExample</p></div>\"\n },\n \"status\": \"active\",\n \"intent\": \"order\",\n \"code\": {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/1365\",\n \"code\": \"3\",\n \"display\": \"Consultation\"\n }\n ]\n },\n \"quantityQuantity\": {\n \"value\": 1,\n \"unit\": \"visit\",\n \"system\": \"http://unitsofmeasure.org\",\n \"code\": \"1\"\n },\n \"subject\": {\n \"reference\": \"Patient/SubscriberExample\"\n }\n }\n },\n {\n \"fullUrl\": \"http://notreal.com/fhir/PractitionerRole/ReferralPractitionerRoleExample\",\n \"resource\": {\n \"resourceType\": \"PractitionerRole\",\n \"id\": \"ReferralPractitionerRoleExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-practitionerrole\"\n ]\n },\n \"text\": {\n \"status\": \"generated\",\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p><b>Generated Narrative: PractitionerRole</b><a name=\\\"ReferralPractitionerRoleExample\\\"> </a></p><div style=\\\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\\\"><p style=\\\"margin-bottom: 0px\\\">Resource PractitionerRole &quot;ReferralPractitionerRoleExample&quot; </p><p style=\\\"margin-bottom: 0px\\\">Profile: <a href=\\\"StructureDefinition-profile-practitionerrole.html\\\">PAS PractitionerRole</a></p></div><p><b>practitioner</b>: Practitioner/ReferralPractitionerExample</p><p><b>location</b>: Location/ReferralLocationExample</p></div>\"\n },\n \"practitioner\": {\n \"reference\": \"Practitioner/ReferralPractitionerExample\"\n },\n \"location\": [\n {\n \"reference\": \"Location/ReferralLocationExample\"\n }\n ]\n }\n },\n {\n \"fullUrl\": \"http://notreal.com/fhir/Practitioner/ReferralPractitionerExample\",\n \"resource\": {\n \"resourceType\": \"Practitioner\",\n \"id\": \"ReferralPractitionerExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-practitioner\"\n ]\n },\n \"text\": {\n \"status\": \"generated\",\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p><b>Generated Narrative: Practitioner</b><a name=\\\"ReferralPractitionerExample\\\"> </a></p><div style=\\\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\\\"><p style=\\\"margin-bottom: 0px\\\">Resource Practitioner &quot;ReferralPractitionerExample&quot; </p><p style=\\\"margin-bottom: 0px\\\">Profile: <a href=\\\"StructureDefinition-profile-practitioner.html\\\">PAS Practitioner</a></p></div><p><b>identifier</b>: id:\\u00a0&lt;a href=&quot;http://terminology.hl7.org/5.0.0/NamingSystem-npi.html&quot;&gt;NPI&lt;/a&gt;#987654321</p><p><b>name</b>: SUSAN WATSON </p><p><b>telecom</b>: ph: 4029993456</p></div>\"\n },\n \"identifier\": [\n {\n \"system\": \"http://hl7.org/fhir/sid/us-npi\",\n \"value\": \"987654321\"\n }\n ],\n \"name\": [\n {\n \"family\": \"WATSON\",\n \"given\": [\n \"SUSAN\"\n ]\n }\n ],\n \"telecom\": [\n {\n \"system\": \"phone\",\n \"value\": \"4029993456\"\n }\n ]\n }\n },\n {\n \"fullUrl\": \"http://notreal.com/fhir/Location/ReferralLocationExample\",\n \"resource\": {\n \"resourceType\": \"Location\",\n \"id\": \"ReferralLocationExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-location\"\n ]\n },\n \"text\": {\n \"status\": \"generated\",\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p><b>Generated Narrative: Location</b><a name=\\\"ReferralLocationExample\\\"> </a></p><div style=\\\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\\\"><p style=\\\"margin-bottom: 0px\\\">Resource Location &quot;ReferralLocationExample&quot; </p><p style=\\\"margin-bottom: 0px\\\">Profile: <a href=\\\"StructureDefinition-profile-location.html\\\">PAS Location Profile</a></p></div><p><b>name</b>: REFERRAL CLINIC</p><p><b>address</b>: 111 1ST STREET SAN DIEGO CA 92101 US </p></div>\"\n },\n \"name\": \"REFERRAL CLINIC\",\n \"address\": {\n \"line\": [\n \"111 1ST STREET\"\n ],\n \"city\": \"SAN DIEGO\",\n \"state\": \"CA\",\n \"postalCode\": \"92101\",\n \"country\": \"US\"\n }\n }\n }\n ]\n }",
59
+ "raw": "{\n \"resourceType\": \"Bundle\",\n \"id\": \"ReferralAuthorizationBundleExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-pas-request-bundle\"\n ]\n },\n \"identifier\": {\n \"system\": \"http://notreal.com/SUBMITTER_TRANSACTION_IDENTIFIER\",\n \"value\": \"A12345\"\n },\n \"type\": \"collection\",\n \"timestamp\": \"2005-05-02T11:01:00+05:00\",\n \"entry\": [\n {\n \"fullUrl\": \"http://notreal.com/fhir/Claim/ReferralAuthorizationExample\",\n \"resource\": {\n \"resourceType\": \"Claim\",\n \"id\": \"ReferralAuthorizationExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-claim\"\n ]\n },\n \"text\": {\n \"status\": \"extensions\",\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p><b>Generated Narrative: Claim</b><a name=\\\"ReferralAuthorizationExample\\\"> </a></p><div style=\\\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\\\"><p style=\\\"margin-bottom: 0px\\\">Resource Claim &quot;ReferralAuthorizationExample&quot; </p><p style=\\\"margin-bottom: 0px\\\">Profile: <a href=\\\"StructureDefinition-profile-claim.html\\\">PAS Claim</a></p></div><p><b>LevelOfServiceCode</b>: Urgent <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (1338#U)</span></p><p><b>identifier</b>: id:\\u00a0111099</p><p><b>status</b>: active</p><p><b>type</b>: Professional <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (<a href=\\\"http://terminology.hl7.org/5.0.0/CodeSystem-claim-type.html\\\">Claim Type Codes</a>#professional)</span></p><p><b>use</b>: preauthorization</p><p><b>patient</b>: Patient/SubscriberExample</p><p><b>created</b>: 2005-05-02 11:01:00+0500</p><p><b>insurer</b>: Organization/InsurerExample</p><p><b>provider</b>: Organization/UMOExample</p><p><b>priority</b>: Normal <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (<a href=\\\"http://terminology.hl7.org/5.0.0/CodeSystem-processpriority.html\\\">Process Priority Codes</a>#normal)</span></p><h3>CareTeams</h3><table class=\\\"grid\\\"><tr><td style=\\\"display: none\\\">-</td><td><b>Extension</b></td><td><b>Sequence</b></td><td><b>Provider</b></td></tr><tr><td style=\\\"display: none\\\">*</td><td/><td>1</td><td>PractitionerRole/ReferralPractitionerRoleExample</td></tr></table><h3>Diagnoses</h3><table class=\\\"grid\\\"><tr><td style=\\\"display: none\\\">-</td><td><b>Extension</b></td><td><b>Sequence</b></td><td><b>Diagnosis[x]</b></td></tr><tr><td style=\\\"display: none\\\">*</td><td/><td>1</td><td>G89.4 <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (<a href=\\\"http://terminology.hl7.org/5.0.0/CodeSystem-icd10CM.html\\\">International Classification of Diseases, 10th Revision, Clinical Modification (ICD-10-CM)</a>#G89.4)</span></td></tr></table><h3>Insurances</h3><table class=\\\"grid\\\"><tr><td style=\\\"display: none\\\">-</td><td><b>Sequence</b></td><td><b>Focal</b></td><td><b>Coverage</b></td></tr><tr><td style=\\\"display: none\\\">*</td><td>1</td><td>true</td><td>Coverage/InsuranceExample</td></tr></table><h3>Items</h3><table class=\\\"grid\\\"><tr><td style=\\\"display: none\\\">-</td><td><b>Extension</b></td><td><b>Sequence</b></td><td><b>CareTeamSequence</b></td><td><b>DiagnosisSequence</b></td><td><b>Category</b></td><td><b>ProductOrService</b></td><td><b>Location[x]</b></td></tr><tr><td style=\\\"display: none\\\">*</td><td>, , , , , , , , , </td><td>1</td><td>1</td><td>1</td><td>Consultation <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (1365#3)</span></td><td>Consultation <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (1365#3)</span></td><td>11 <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (<a href=\\\"http://terminology.hl7.org/5.0.0/CodeSystem-CMSPlaceofServiceCodes.html\\\">CMS Place of Service Codes (POS)</a>#11)</span></td></tr></table></div>\"\n },\n \"extension\": [\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-levelOfServiceCode\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/1338\",\n \"code\": \"U\",\n \"display\": \"Urgent\"\n }\n ]\n }\n }\n ],\n \"identifier\": [\n {\n \"extension\": [\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-identifierJurisdiction\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://www.usps.com/\",\n \"code\": \"MA\"\n }\n ]\n }\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-identifierSubDepartment\",\n \"valueString\": \"223412\"\n }\n ],\n \"system\": \"http://notreal.com/PATIENT_EVENT_TRACE_NUMBER\",\n \"value\": \"111099\",\n \"assigner\": {\n \"identifier\": {\n \"system\": \"http://notreal.com/USER_ASSIGNED\",\n \"value\": \"9012345678\"\n }\n }\n }\n ],\n \"status\": \"active\",\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/claim-type\",\n \"code\": \"professional\"\n }\n ]\n },\n \"use\": \"preauthorization\",\n \"patient\": {\n \"reference\": \"Patient/SubscriberExample\"\n },\n \"created\": \"2005-05-02T11:01:00+05:00\",\n \"insurer\": {\n \"reference\": \"Organization/InsurerExample\"\n },\n \"provider\": {\n \"reference\": \"Organization/UMOExample\"\n },\n \"priority\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/processpriority\",\n \"code\": \"normal\"\n }\n ]\n },\n \"careTeam\": [\n {\n \"extension\": [\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-careTeamClaimScope\",\n \"valueBoolean\": true\n }\n ],\n \"sequence\": 1,\n \"provider\": {\n \"reference\": \"PractitionerRole/ReferralPractitionerRoleExample\"\n }\n }\n ],\n \"diagnosis\": [\n {\n \"extension\": [\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-diagnosisRecordedDate\",\n \"valueDate\": \"2021-05-10\"\n }\n ],\n \"sequence\": 1,\n \"diagnosisCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"http://hl7.org/fhir/sid/icd-10-cm\",\n \"code\": \"G89.4\"\n }\n ]\n }\n }\n ],\n \"insurance\": [\n {\n \"sequence\": 1,\n \"focal\": true,\n \"coverage\": {\n \"reference\": \"Coverage/InsuranceExample\"\n }\n }\n ],\n \"item\": [\n {\n \"extension\": [\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-itemTraceNumber\",\n \"valueIdentifier\": {\n \"system\": \"http://notreal.com/ITEM_TRACE_NUMBER\",\n \"value\": \"1122334\"\n }\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-authorizationNumber\",\n \"valueString\": \"1122445\"\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-administrationReferenceNumber\",\n \"valueString\": \"9988311\"\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-serviceItemRequestType\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/1525\",\n \"code\": \"SC\",\n \"display\": \"Specialty Care Review\"\n }\n ]\n }\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-certificationType\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/1322\",\n \"code\": \"I\",\n \"display\": \"Initial\"\n }\n ]\n }\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-requestedService\",\n \"valueReference\": {\n \"reference\": \"ServiceRequest/ReferralRequestExample\"\n }\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-epsdtIndicator\",\n \"valueBoolean\": false\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-nursingHomeResidentialStatus\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/1345\",\n \"code\": \"2\",\n \"display\": \"Newly Admitted\"\n }\n ]\n }\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-nursingHomeLevelOfCare\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/1337\",\n \"code\": \"2\",\n \"display\": \"Intermediate Care Facility (ICF)\"\n }\n ]\n }\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-revenueUnitRateLimit\",\n \"valueDecimal\": 100\n }\n ],\n \"sequence\": 1,\n \"careTeamSequence\": [\n 1\n ],\n \"diagnosisSequence\": [\n 1\n ],\n \"category\": {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/1365\",\n \"code\": \"3\",\n \"display\": \"Consultation\"\n }\n ]\n },\n \"productOrService\": {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/1365\",\n \"code\": \"3\",\n \"display\": \"Consultation\"\n }\n ]\n },\n \"locationCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set\",\n \"code\": \"11\"\n }\n ]\n }\n }\n ]\n }\n },\n {\n \"fullUrl\": \"http://notreal.com/fhir/Organization/UMOExample\",\n \"resource\": {\n \"resourceType\": \"Organization\",\n \"id\": \"UMOExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-requestor\"\n ]\n },\n \"text\": {\n \"status\": \"generated\",\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p><b>Generated Narrative: Organization</b><a name=\\\"UMOExample\\\"> </a></p><div style=\\\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\\\"><p style=\\\"margin-bottom: 0px\\\">Resource Organization &quot;UMOExample&quot; </p><p style=\\\"margin-bottom: 0px\\\">Profile: <a href=\\\"StructureDefinition-profile-requestor.html\\\">PAS Requestor Organization</a></p></div><p><b>identifier</b>: id:\\u00a0&lt;a href=&quot;http://terminology.hl7.org/5.0.0/NamingSystem-npi.html&quot;&gt;NPI&lt;/a&gt;#8189991234</p><p><b>active</b>: true</p><p><b>type</b>: X3 <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (98#X3)</span></p><p><b>name</b>: DR. JOE SMITH CORPORATION</p><p><b>address</b>: 111 1ST STREET SAN DIEGO CA 92101 US </p></div>\"\n },\n \"identifier\": [\n {\n \"system\": \"http://hl7.org/fhir/sid/us-npi\",\n \"value\": \"8189991234\"\n }\n ],\n \"active\": true,\n \"type\": [\n {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/98\",\n \"code\": \"X3\"\n }\n ]\n }\n ],\n \"name\": \"DR. JOE SMITH CORPORATION\",\n \"address\": [\n {\n \"line\": [\n \"111 1ST STREET\"\n ],\n \"city\": \"SAN DIEGO\",\n \"state\": \"CA\",\n \"postalCode\": \"92101\",\n \"country\": \"US\"\n }\n ]\n }\n },\n {\n \"fullUrl\": \"http://notreal.com/fhir/Organization/InsurerExample\",\n \"resource\": {\n \"resourceType\": \"Organization\",\n \"id\": \"InsurerExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-insurer\"\n ]\n },\n \"text\": {\n \"status\": \"generated\",\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p><b>Generated Narrative: Organization</b><a name=\\\"InsurerExample\\\"> </a></p><div style=\\\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\\\"><p style=\\\"margin-bottom: 0px\\\">Resource Organization &quot;InsurerExample&quot; </p><p style=\\\"margin-bottom: 0px\\\">Profile: <a href=\\\"StructureDefinition-profile-insurer.html\\\">PAS Insurer Organization</a></p></div><p><b>identifier</b>: id:\\u00a0&lt;a href=&quot;http://terminology.hl7.org/5.0.0/NamingSystem-npi.html&quot;&gt;NPI&lt;/a&gt;#789312</p><p><b>active</b>: true</p><p><b>type</b>: PR <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (98#PR)</span></p><p><b>name</b>: MARYLAND CAPITAL INSURANCE COMPANY</p></div>\"\n },\n \"identifier\": [\n {\n \"system\": \"http://hl7.org/fhir/sid/us-npi\",\n \"value\": \"8383066098\"\n }\n ],\n \"active\": true,\n \"type\": [\n {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/98\",\n \"code\": \"PR\"\n }\n ]\n }\n ],\n \"name\": \"MARYLAND CAPITAL INSURANCE COMPANY\"\n }\n },\n {\n \"fullUrl\": \"http://notreal.com/fhir/Coverage/InsuranceExample\",\n \"resource\": {\n \"resourceType\": \"Coverage\",\n \"id\": \"InsuranceExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-coverage\"\n ]\n },\n \"text\": {\n \"status\": \"generated\",\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p><b>Generated Narrative: Coverage</b><a name=\\\"InsuranceExample\\\"> </a></p><div style=\\\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\\\"><p style=\\\"margin-bottom: 0px\\\">Resource Coverage &quot;InsuranceExample&quot; </p><p style=\\\"margin-bottom: 0px\\\">Profile: <a href=\\\"StructureDefinition-profile-coverage.html\\\">PAS Coverage</a></p></div><p><b>status</b>: active</p><p><b>beneficiary</b>: Patient/SubscriberExample</p><p><b>payor</b>: Organization/InsurerExample</p></div>\"\n },\n \"status\": \"active\",\n \"beneficiary\": {\n \"reference\": \"Patient/SubscriberExample\"\n },\n \"payor\": [\n {\n \"reference\": \"Organization/InsurerExample\"\n }\n ]\n }\n },\n {\n \"fullUrl\": \"http://notreal.com/fhir/Patient/SubscriberExample\",\n \"resource\": {\n \"resourceType\": \"Patient\",\n \"id\": \"SubscriberExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-subscriber\"\n ]\n },\n \"text\": {\n \"status\": \"extensions\",\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p><b>Generated Narrative: Patient</b><a name=\\\"SubscriberExample\\\"> </a></p><div style=\\\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\\\"><p style=\\\"margin-bottom: 0px\\\">Resource Patient &quot;SubscriberExample&quot; </p><p style=\\\"margin-bottom: 0px\\\">Profile: <a href=\\\"StructureDefinition-profile-subscriber.html\\\">PAS Subscriber Patient</a></p></div><p><b>MilitaryStatus</b>: RU <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (584#RU)</span></p><p><b>identifier</b>: id:\\u00a012345678901</p><p><b>name</b>: JOE SMITH </p><p><b>gender</b>: male</p></div>\"\n },\n \"extension\": [\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-militaryStatus\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/584\",\n \"code\": \"RU\"\n }\n ]\n }\n }\n ],\n \"identifier\": [\n {\n \"system\": \"http://notreal.com/MIN\",\n \"value\": \"12345678901\"\n }\n ],\n \"name\": [\n {\n \"family\": \"SMITH\",\n \"given\": [\n \"JOE\"\n ]\n }\n ],\n \"gender\": \"male\"\n }\n },\n {\n \"fullUrl\": \"http://notreal.com/fhir/ServiceRequest/ReferralRequestExample\",\n \"resource\": {\n \"resourceType\": \"ServiceRequest\",\n \"id\": \"ReferralRequestExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-servicerequest\"\n ]\n },\n \"text\": {\n \"status\": \"generated\",\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p><b>Generated Narrative: ServiceRequest</b><a name=\\\"ReferralRequestExample\\\"> </a></p><div style=\\\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\\\"><p style=\\\"margin-bottom: 0px\\\">Resource ServiceRequest &quot;ReferralRequestExample&quot; </p><p style=\\\"margin-bottom: 0px\\\">Profile: <a href=\\\"StructureDefinition-profile-servicerequest.html\\\">PAS Service Request</a></p></div><p><b>status</b>: active</p><p><b>intent</b>: order</p><p><b>code</b>: Consultation <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (1365#3)</span></p><p><b>quantity</b>: 1 visit<span style=\\\"background: LightGoldenRodYellow\\\"> (Details: UCUM code 1 = '1')</span></p><p><b>subject</b>: Patient/SubscriberExample</p></div>\"\n },\n \"status\": \"active\",\n \"intent\": \"order\",\n \"code\": {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/1365\",\n \"code\": \"3\",\n \"display\": \"Consultation\"\n }\n ]\n },\n \"quantityQuantity\": {\n \"value\": 1,\n \"unit\": \"visit\",\n \"system\": \"http://unitsofmeasure.org\",\n \"code\": \"1\"\n },\n \"subject\": {\n \"reference\": \"Patient/SubscriberExample\"\n }\n }\n },\n {\n \"fullUrl\": \"http://notreal.com/fhir/PractitionerRole/ReferralPractitionerRoleExample\",\n \"resource\": {\n \"resourceType\": \"PractitionerRole\",\n \"id\": \"ReferralPractitionerRoleExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-practitionerrole\"\n ]\n },\n \"text\": {\n \"status\": \"generated\",\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p><b>Generated Narrative: PractitionerRole</b><a name=\\\"ReferralPractitionerRoleExample\\\"> </a></p><div style=\\\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\\\"><p style=\\\"margin-bottom: 0px\\\">Resource PractitionerRole &quot;ReferralPractitionerRoleExample&quot; </p><p style=\\\"margin-bottom: 0px\\\">Profile: <a href=\\\"StructureDefinition-profile-practitionerrole.html\\\">PAS PractitionerRole</a></p></div><p><b>practitioner</b>: Practitioner/ReferralPractitionerExample</p><p><b>location</b>: Location/ReferralLocationExample</p></div>\"\n },\n \"practitioner\": {\n \"reference\": \"Practitioner/ReferralPractitionerExample\"\n },\n \"location\": [\n {\n \"reference\": \"Location/ReferralLocationExample\"\n }\n ]\n }\n },\n {\n \"fullUrl\": \"http://notreal.com/fhir/Practitioner/ReferralPractitionerExample\",\n \"resource\": {\n \"resourceType\": \"Practitioner\",\n \"id\": \"ReferralPractitionerExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-practitioner\"\n ]\n },\n \"text\": {\n \"status\": \"generated\",\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p><b>Generated Narrative: Practitioner</b><a name=\\\"ReferralPractitionerExample\\\"> </a></p><div style=\\\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\\\"><p style=\\\"margin-bottom: 0px\\\">Resource Practitioner &quot;ReferralPractitionerExample&quot; </p><p style=\\\"margin-bottom: 0px\\\">Profile: <a href=\\\"StructureDefinition-profile-practitioner.html\\\">PAS Practitioner</a></p></div><p><b>identifier</b>: id:\\u00a0&lt;a href=&quot;http://terminology.hl7.org/5.0.0/NamingSystem-npi.html&quot;&gt;NPI&lt;/a&gt;#987654321</p><p><b>name</b>: SUSAN WATSON </p><p><b>telecom</b>: ph: 4029993456</p></div>\"\n },\n \"identifier\": [\n {\n \"system\": \"http://hl7.org/fhir/sid/us-npi\",\n \"value\": \"987654321\"\n }\n ],\n \"name\": [\n {\n \"family\": \"WATSON\",\n \"given\": [\n \"SUSAN\"\n ]\n }\n ],\n \"telecom\": [\n {\n \"system\": \"phone\",\n \"value\": \"4029993456\"\n }\n ]\n }\n },\n {\n \"fullUrl\": \"http://notreal.com/fhir/Location/ReferralLocationExample\",\n \"resource\": {\n \"resourceType\": \"Location\",\n \"id\": \"ReferralLocationExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-location\"\n ]\n },\n \"text\": {\n \"status\": \"generated\",\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p><b>Generated Narrative: Location</b><a name=\\\"ReferralLocationExample\\\"> </a></p><div style=\\\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\\\"><p style=\\\"margin-bottom: 0px\\\">Resource Location &quot;ReferralLocationExample&quot; </p><p style=\\\"margin-bottom: 0px\\\">Profile: <a href=\\\"StructureDefinition-profile-location.html\\\">PAS Location Profile</a></p></div><p><b>name</b>: REFERRAL CLINIC</p><p><b>address</b>: 111 1ST STREET SAN DIEGO CA 92101 US </p></div>\"\n },\n \"name\": \"REFERRAL CLINIC\",\n \"address\": {\n \"line\": [\n \"111 1ST STREET\"\n ],\n \"city\": \"SAN DIEGO\",\n \"state\": \"CA\",\n \"postalCode\": \"92101\",\n \"country\": \"US\"\n }\n }\n }\n ]\n }",
60
60
  "options": {
61
61
  "raw": {
62
62
  "language": "json"
@@ -96,7 +96,7 @@
96
96
  ],
97
97
  "body": {
98
98
  "mode": "raw",
99
- "raw": "{\n \"resourceType\" : \"Bundle\",\n \"id\" : \"0a927577-c304-4d24-9837-bd8e4d116672\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-pas-request-bundle\"]\n },\n \"identifier\" : {\n \"system\" : \"http://notreal.com/SUBMITTER_TRANSACTION_IDENTIFIER\",\n \"value\" : \"B12345\"\n },\n \"type\" : \"collection\",\n \"timestamp\" : \"2005-05-02T14:30:00+05:00\",\n \"entry\" : [{\n \"fullUrl\" : \"urn:uuid:58bf54f2-9a96-43b2-93df-64078dd752f4\",\n \"resource\" : {\n \"resourceType\" : \"Claim\",\n \"id\" : \"58bf54f2-9a96-43b2-93df-64078dd752f4\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-claim\"]\n },\n \"extension\" : [{\n \"extension\" : [{\n \"url\" : \"prognosis\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/923\",\n \"code\" : \"1\"\n }]\n }\n },\n {\n \"url\" : \"date\",\n \"valueDate\" : \"2005-05-02\"\n }],\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-homeHealthCareInformation\"\n }],\n \"identifier\" : [{\n \"system\" : \"http://notreal.com/PATIENT_EVENT_TRACE_NUMBER\",\n \"value\" : \"111366\",\n \"assigner\" : {\n \"identifier\" : {\n \"system\" : \"http://notreal.com/USER_ASSIGNED\",\n \"value\" : \"5556667771\"\n }\n }\n }],\n \"status\" : \"active\",\n \"type\" : {\n \"coding\" : [{\n \"system\" : \"http://terminology.hl7.org/CodeSystem/claim-type\",\n \"code\" : \"professional\"\n }]\n },\n \"use\" : \"preauthorization\",\n \"patient\" : {\n \"reference\" : \"urn:uuid:0b321e9e-571b-4f83-8cea-fa23424383bb\"\n },\n \"created\" : \"2019-07-20T11:01:00+05:00\",\n \"insurer\" : {\n \"reference\" : \"urn:uuid:ff7adc9d-8854-4947-874a-8b61bca953c1\"\n },\n \"provider\" : {\n \"reference\" : \"urn:uuid:b0881003-0d22-499d-840b-91dc7f6f4479\"\n },\n \"priority\" : {\n \"coding\" : [{\n \"system\" : \"http://terminology.hl7.org/CodeSystem/processpriority\",\n \"code\" : \"normal\"\n }]\n },\n \"insurance\" : [{\n \"sequence\" : 1,\n \"focal\" : true,\n \"coverage\" : {\n \"reference\" : \"urn:uuid:39f01aed-5a64-4301-8449-82b3d60f330c\"\n }\n }],\n \"item\" : [{\n \"extension\" : [{\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-serviceItemRequestType\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1525\",\n \"code\" : \"HS\",\n \"display\" : \"Health Services Review\"\n }]\n }\n },\n {\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-certificationType\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1322\",\n \"code\" : \"I\",\n \"display\" : \"Initial\"\n }]\n }\n }],\n \"sequence\" : 1,\n \"category\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1365\",\n \"code\" : \"42\",\n \"display\" : \"Home Health Care\"\n }]\n },\n \"productOrService\" : {\n \"coding\" : [{\n \"system\" : \"http://www.cms.gov/Medicare/Coding/HCPCSReleaseCodeSets\",\n \"code\" : \"G0154\"\n }]\n }\n },\n {\n \"extension\" : [{\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-serviceItemRequestType\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1525\",\n \"code\" : \"HS\",\n \"display\" : \"Health Services Review\"\n }]\n }\n },\n {\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-certificationType\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1322\",\n \"code\" : \"I\",\n \"display\" : \"Initial\"\n }]\n }\n }],\n \"sequence\" : 2,\n \"category\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1365\",\n \"code\" : \"42\",\n \"display\" : \"Home Health Care\"\n }]\n },\n \"productOrService\" : {\n \"coding\" : [{\n \"system\" : \"http://www.cms.gov/Medicare/Coding/HCPCSReleaseCodeSets\",\n \"code\" : \"B4184\"\n }]\n }\n }]\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:b0881003-0d22-499d-840b-91dc7f6f4479\",\n \"resource\" : {\n \"resourceType\" : \"Organization\",\n \"id\" : \"b0881003-0d22-499d-840b-91dc7f6f4479\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-requestor\"]\n },\n \"identifier\" : [{\n \"system\" : \"http://hl7.org/fhir/sid/us-npi\",\n \"value\" : \"8189991234\"\n }],\n \"active\" : true,\n \"type\" : [{\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/98\",\n \"code\" : \"X3\"\n }]\n }],\n \"name\" : \"DR. JOE SMITH CORPORATION\",\n \"address\" : [{\n \"line\" : [\"111 1ST STREET\"],\n \"city\" : \"SAN DIEGO\",\n \"state\" : \"CA\",\n \"postalCode\" : \"92101\",\n \"country\" : \"US\"\n }]\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:ff7adc9d-8854-4947-874a-8b61bca953c1\",\n \"resource\" : {\n \"resourceType\" : \"Organization\",\n \"id\" : \"ff7adc9d-8854-4947-874a-8b61bca953c1\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-insurer\"]\n },\n \"identifier\" : [{\n \"system\" : \"http://hl7.org/fhir/sid/us-npi\",\n \"value\" : \"789312\"\n }],\n \"active\" : true,\n \"type\" : [{\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/98\",\n \"code\" : \"PR\"\n }]\n }],\n \"name\" : \"MARYLAND CAPITAL INSURANCE COMPANY\"\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:39f01aed-5a64-4301-8449-82b3d60f330c\",\n \"resource\" : {\n \"resourceType\" : \"Coverage\",\n \"id\" : \"39f01aed-5a64-4301-8449-82b3d60f330c\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-coverage\"]\n },\n \"status\" : \"active\",\n \"beneficiary\" : {\n \"reference\" : \"urn:uuid:0b321e9e-571b-4f83-8cea-fa23424383bb\"\n },\n \"payor\" : [{\n \"reference\" : \"urn:uuid:ff7adc9d-8854-4947-874a-8b61bca953c1\"\n }]\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:0b321e9e-571b-4f83-8cea-fa23424383bb\",\n \"resource\" : {\n \"resourceType\" : \"Patient\",\n \"id\" : \"0b321e9e-571b-4f83-8cea-fa23424383bb\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-subscriber\"]\n },\n \"extension\" : [{\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-militaryStatus\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/584\",\n \"code\" : \"RU\"\n }]\n }\n }],\n \"identifier\" : [{\n \"system\" : \"http://notreal.com/MIN\",\n \"value\" : \"12345678901\"\n }],\n \"name\" : [{\n \"family\" : \"SMITH\",\n \"given\" : [\"JOE\"]\n }],\n \"gender\" : \"male\"\n }\n }]\n}",
99
+ "raw": "{\n \"resourceType\" : \"Bundle\",\n \"id\" : \"0a927577-c304-4d24-9837-bd8e4d116672\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-pas-request-bundle\"]\n },\n \"identifier\" : {\n \"system\" : \"http://notreal.com/SUBMITTER_TRANSACTION_IDENTIFIER\",\n \"value\" : \"B12345\"\n },\n \"type\" : \"collection\",\n \"timestamp\" : \"2005-05-02T14:30:00+05:00\",\n \"entry\" : [{\n \"fullUrl\" : \"urn:uuid:58bf54f2-9a96-43b2-93df-64078dd752f4\",\n \"resource\" : {\n \"resourceType\" : \"Claim\",\n \"id\" : \"58bf54f2-9a96-43b2-93df-64078dd752f4\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-claim\"]\n },\n \"extension\" : [{\n \"extension\" : [{\n \"url\" : \"prognosis\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/923\",\n \"code\" : \"1\"\n }]\n }\n },\n {\n \"url\" : \"date\",\n \"valueDate\" : \"2005-05-02\"\n }],\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-homeHealthCareInformation\"\n }],\n \"identifier\" : [{\n \"system\" : \"http://notreal.com/PATIENT_EVENT_TRACE_NUMBER\",\n \"value\" : \"111366\",\n \"assigner\" : {\n \"identifier\" : {\n \"system\" : \"http://notreal.com/USER_ASSIGNED\",\n \"value\" : \"5556667771\"\n }\n }\n }],\n \"status\" : \"active\",\n \"type\" : {\n \"coding\" : [{\n \"system\" : \"http://terminology.hl7.org/CodeSystem/claim-type\",\n \"code\" : \"professional\"\n }]\n },\n \"use\" : \"preauthorization\",\n \"patient\" : {\n \"reference\" : \"urn:uuid:0b321e9e-571b-4f83-8cea-fa23424383bb\"\n },\n \"created\" : \"2019-07-20T11:01:00+05:00\",\n \"insurer\" : {\n \"reference\" : \"urn:uuid:ff7adc9d-8854-4947-874a-8b61bca953c1\"\n },\n \"provider\" : {\n \"reference\" : \"urn:uuid:b0881003-0d22-499d-840b-91dc7f6f4479\"\n },\n \"priority\" : {\n \"coding\" : [{\n \"system\" : \"http://terminology.hl7.org/CodeSystem/processpriority\",\n \"code\" : \"normal\"\n }]\n },\n \"insurance\" : [{\n \"sequence\" : 1,\n \"focal\" : true,\n \"coverage\" : {\n \"reference\" : \"urn:uuid:39f01aed-5a64-4301-8449-82b3d60f330c\"\n }\n }],\n \"item\" : [{\n \"extension\" : [{\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-serviceItemRequestType\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1525\",\n \"code\" : \"HS\",\n \"display\" : \"Health Services Review\"\n }]\n }\n },\n {\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-certificationType\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1322\",\n \"code\" : \"I\",\n \"display\" : \"Initial\"\n }]\n }\n }],\n \"sequence\" : 1,\n \"category\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1365\",\n \"code\" : \"42\",\n \"display\" : \"Home Health Care\"\n }]\n },\n \"productOrService\" : {\n \"coding\" : [{\n \"system\" : \"http://www.cms.gov/Medicare/Coding/HCPCSReleaseCodeSets\",\n \"code\" : \"G0154\"\n }]\n }\n },\n {\n \"extension\" : [{\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-serviceItemRequestType\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1525\",\n \"code\" : \"HS\",\n \"display\" : \"Health Services Review\"\n }]\n }\n },\n {\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-certificationType\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1322\",\n \"code\" : \"I\",\n \"display\" : \"Initial\"\n }]\n }\n }],\n \"sequence\" : 2,\n \"category\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1365\",\n \"code\" : \"42\",\n \"display\" : \"Home Health Care\"\n }]\n },\n \"productOrService\" : {\n \"coding\" : [{\n \"system\" : \"http://www.cms.gov/Medicare/Coding/HCPCSReleaseCodeSets\",\n \"code\" : \"B4184\"\n }]\n }\n }]\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:b0881003-0d22-499d-840b-91dc7f6f4479\",\n \"resource\" : {\n \"resourceType\" : \"Organization\",\n \"id\" : \"b0881003-0d22-499d-840b-91dc7f6f4479\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-requestor\"]\n },\n \"identifier\" : [{\n \"system\" : \"http://hl7.org/fhir/sid/us-npi\",\n \"value\" : \"8189991234\"\n }],\n \"active\" : true,\n \"type\" : [{\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/98\",\n \"code\" : \"X3\"\n }]\n }],\n \"name\" : \"DR. JOE SMITH CORPORATION\",\n \"address\" : [{\n \"line\" : [\"111 1ST STREET\"],\n \"city\" : \"SAN DIEGO\",\n \"state\" : \"CA\",\n \"postalCode\" : \"92101\",\n \"country\" : \"US\"\n }]\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:ff7adc9d-8854-4947-874a-8b61bca953c1\",\n \"resource\" : {\n \"resourceType\" : \"Organization\",\n \"id\" : \"ff7adc9d-8854-4947-874a-8b61bca953c1\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-insurer\"]\n },\n \"identifier\" : [{\n \"system\" : \"http://hl7.org/fhir/sid/us-npi\",\n \"value\" : \"8383066098\"\n }],\n \"active\" : true,\n \"type\" : [{\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/98\",\n \"code\" : \"PR\"\n }]\n }],\n \"name\" : \"MARYLAND CAPITAL INSURANCE COMPANY\"\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:39f01aed-5a64-4301-8449-82b3d60f330c\",\n \"resource\" : {\n \"resourceType\" : \"Coverage\",\n \"id\" : \"39f01aed-5a64-4301-8449-82b3d60f330c\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-coverage\"]\n },\n \"status\" : \"active\",\n \"beneficiary\" : {\n \"reference\" : \"urn:uuid:0b321e9e-571b-4f83-8cea-fa23424383bb\"\n },\n \"payor\" : [{\n \"reference\" : \"urn:uuid:ff7adc9d-8854-4947-874a-8b61bca953c1\"\n }]\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:0b321e9e-571b-4f83-8cea-fa23424383bb\",\n \"resource\" : {\n \"resourceType\" : \"Patient\",\n \"id\" : \"0b321e9e-571b-4f83-8cea-fa23424383bb\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-subscriber\"]\n },\n \"extension\" : [{\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-militaryStatus\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/584\",\n \"code\" : \"RU\"\n }]\n }\n }],\n \"identifier\" : [{\n \"system\" : \"http://notreal.com/MIN\",\n \"value\" : \"12345678901\"\n }],\n \"name\" : [{\n \"family\" : \"SMITH\",\n \"given\" : [\"JOE\"]\n }],\n \"gender\" : \"male\"\n }\n }]\n}",
100
100
  "options": {
101
101
  "raw": {
102
102
  "language": "json"
@@ -136,7 +136,7 @@
136
136
  ],
137
137
  "body": {
138
138
  "mode": "raw",
139
- "raw": "{\n \"resourceType\" : \"Bundle\",\n \"id\" : \"60815928-c69f-4503-b0ce-e24d3c2a0591\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-pas-request-bundle\"]\n },\n \"identifier\" : {\n \"system\" : \"http://notreal.com/SUBMITTER_TRANSACTION_IDENTIFIER\",\n \"value\" : \"902834\"\n },\n \"type\" : \"collection\",\n \"timestamp\" : \"2005-05-02T11:01:00+05:00\",\n \"entry\" : [{\n \"fullUrl\" : \"urn:uuid:2d84327e-1baf-4f68-ac42-41e5c8ad8803\",\n \"resource\" : {\n \"resourceType\" : \"Claim\",\n \"id\" : \"2d84327e-1baf-4f68-ac42-41e5c8ad8803\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-claim\"]\n },\n \"identifier\" : [{\n \"system\" : \"http://notreal.com/PATIENT_EVENT_TRACE_NUMBER\",\n \"value\" : \"1263291\",\n \"assigner\" : {\n \"identifier\" : {\n \"system\" : \"http://notreal.com/USER_ASSIGNED\",\n \"value\" : \"99102388213\"\n }\n }\n }],\n \"status\" : \"active\",\n \"type\" : {\n \"coding\" : [{\n \"system\" : \"http://terminology.hl7.org/CodeSystem/claim-type\",\n \"code\" : \"professional\"\n }]\n },\n \"use\" : \"preauthorization\",\n \"patient\" : {\n \"reference\" : \"urn:uuid:0b321e9e-571b-4f83-8cea-fa23424383bb\"\n },\n \"created\" : \"2005-05-02T11:01:00+05:00\",\n \"insurer\" : {\n \"reference\" : \"urn:uuid:ff7adc9d-8854-4947-874a-8b61bca953c1\"\n },\n \"provider\" : {\n \"reference\" : \"urn:uuid:b0881003-0d22-499d-840b-91dc7f6f4479\"\n },\n \"priority\" : {\n \"coding\" : [{\n \"system\" : \"http://terminology.hl7.org/CodeSystem/processpriority\",\n \"code\" : \"normal\"\n }]\n },\n \"insurance\" : [{\n \"sequence\" : 1,\n \"focal\" : true,\n \"coverage\" : {\n \"reference\" : \"urn:uuid:39f01aed-5a64-4301-8449-82b3d60f330c\"\n }\n }],\n \"item\" : [{\n \"extension\" : [{\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-serviceItemRequestType\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1525\",\n \"code\" : \"IN\",\n \"display\" : \"Initial Medical Services Reservation\"\n }]\n }\n },\n {\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-certificationType\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1322\",\n \"code\" : \"I\",\n \"display\" : \"Initial\"\n }]\n }\n },\n {\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-authorizationNumber\",\n \"valueString\" : \"2389983\"\n },\n {\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-administrationReferenceNumber\",\n \"valueString\" : \"12385668734\"\n }],\n \"sequence\" : 1,\n \"category\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1365\",\n \"code\" : \"1\",\n \"display\" : \"Medical Care\"\n }]\n },\n \"productOrService\" : {\n \"coding\" : [{\n \"system\" : \"http://www.cms.gov/Medicare/Coding/HCPCSReleaseCodeSets\",\n \"code\" : \"99212\",\n \"display\" : \"Established Office Visit\"\n }]\n },\n \"servicedDate\" : \"2005-05-10\",\n \"locationCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set\",\n \"code\" : \"11\"\n }]\n }\n }]\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:b0881003-0d22-499d-840b-91dc7f6f4479\",\n \"resource\" : {\n \"resourceType\" : \"Organization\",\n \"id\" : \"b0881003-0d22-499d-840b-91dc7f6f4479\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-requestor\"]\n },\n \"identifier\" : [{\n \"system\" : \"http://hl7.org/fhir/sid/us-npi\",\n \"value\" : \"8189991234\"\n }],\n \"active\" : true,\n \"type\" : [{\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/98\",\n \"code\" : \"X3\"\n }]\n }],\n \"name\" : \"DR. JOE SMITH CORPORATION\",\n \"address\" : [{\n \"line\" : [\"111 1ST STREET\"],\n \"city\" : \"SAN DIEGO\",\n \"state\" : \"CA\",\n \"postalCode\" : \"92101\",\n \"country\" : \"US\"\n }]\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:ff7adc9d-8854-4947-874a-8b61bca953c1\",\n \"resource\" : {\n \"resourceType\" : \"Organization\",\n \"id\" : \"ff7adc9d-8854-4947-874a-8b61bca953c1\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-insurer\"]\n },\n \"identifier\" : [{\n \"system\" : \"http://hl7.org/fhir/sid/us-npi\",\n \"value\" : \"789312\"\n }],\n \"active\" : true,\n \"type\" : [{\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/98\",\n \"code\" : \"PR\"\n }]\n }],\n \"name\" : \"MARYLAND CAPITAL INSURANCE COMPANY\"\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:39f01aed-5a64-4301-8449-82b3d60f330c\",\n \"resource\" : {\n \"resourceType\" : \"Coverage\",\n \"id\" : \"39f01aed-5a64-4301-8449-82b3d60f330c\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-coverage\"]\n },\n \"status\" : \"active\",\n \"beneficiary\" : {\n \"reference\" : \"urn:uuid:0b321e9e-571b-4f83-8cea-fa23424383bb\"\n },\n \"payor\" : [{\n \"reference\" : \"urn:uuid:ff7adc9d-8854-4947-874a-8b61bca953c1\"\n }]\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:0b321e9e-571b-4f83-8cea-fa23424383bb\",\n \"resource\" : {\n \"resourceType\" : \"Patient\",\n \"id\" : \"0b321e9e-571b-4f83-8cea-fa23424383bb\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-subscriber\"]\n },\n \"extension\" : [{\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-militaryStatus\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/584\",\n \"code\" : \"RU\"\n }]\n }\n }],\n \"identifier\" : [{\n \"system\" : \"http://notreal.com/MIN\",\n \"value\" : \"12345678901\"\n }],\n \"name\" : [{\n \"family\" : \"SMITH\",\n \"given\" : [\"JOE\"]\n }],\n \"gender\" : \"male\"\n }\n }]\n}",
139
+ "raw": "{\n \"resourceType\" : \"Bundle\",\n \"id\" : \"60815928-c69f-4503-b0ce-e24d3c2a0591\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-pas-request-bundle\"]\n },\n \"identifier\" : {\n \"system\" : \"http://notreal.com/SUBMITTER_TRANSACTION_IDENTIFIER\",\n \"value\" : \"902834\"\n },\n \"type\" : \"collection\",\n \"timestamp\" : \"2005-05-02T11:01:00+05:00\",\n \"entry\" : [{\n \"fullUrl\" : \"urn:uuid:2d84327e-1baf-4f68-ac42-41e5c8ad8803\",\n \"resource\" : {\n \"resourceType\" : \"Claim\",\n \"id\" : \"2d84327e-1baf-4f68-ac42-41e5c8ad8803\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-claim\"]\n },\n \"identifier\" : [{\n \"system\" : \"http://notreal.com/PATIENT_EVENT_TRACE_NUMBER\",\n \"value\" : \"1263291\",\n \"assigner\" : {\n \"identifier\" : {\n \"system\" : \"http://notreal.com/USER_ASSIGNED\",\n \"value\" : \"99102388213\"\n }\n }\n }],\n \"status\" : \"active\",\n \"type\" : {\n \"coding\" : [{\n \"system\" : \"http://terminology.hl7.org/CodeSystem/claim-type\",\n \"code\" : \"professional\"\n }]\n },\n \"use\" : \"preauthorization\",\n \"patient\" : {\n \"reference\" : \"urn:uuid:0b321e9e-571b-4f83-8cea-fa23424383bb\"\n },\n \"created\" : \"2005-05-02T11:01:00+05:00\",\n \"insurer\" : {\n \"reference\" : \"urn:uuid:ff7adc9d-8854-4947-874a-8b61bca953c1\"\n },\n \"provider\" : {\n \"reference\" : \"urn:uuid:b0881003-0d22-499d-840b-91dc7f6f4479\"\n },\n \"priority\" : {\n \"coding\" : [{\n \"system\" : \"http://terminology.hl7.org/CodeSystem/processpriority\",\n \"code\" : \"normal\"\n }]\n },\n \"insurance\" : [{\n \"sequence\" : 1,\n \"focal\" : true,\n \"coverage\" : {\n \"reference\" : \"urn:uuid:39f01aed-5a64-4301-8449-82b3d60f330c\"\n }\n }],\n \"item\" : [{\n \"extension\" : [{\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-serviceItemRequestType\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1525\",\n \"code\" : \"IN\",\n \"display\" : \"Initial Medical Services Reservation\"\n }]\n }\n },\n {\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-certificationType\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1322\",\n \"code\" : \"I\",\n \"display\" : \"Initial\"\n }]\n }\n },\n {\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-authorizationNumber\",\n \"valueString\" : \"2389983\"\n },\n {\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-administrationReferenceNumber\",\n \"valueString\" : \"12385668734\"\n }],\n \"sequence\" : 1,\n \"category\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1365\",\n \"code\" : \"1\",\n \"display\" : \"Medical Care\"\n }]\n },\n \"productOrService\" : {\n \"coding\" : [{\n \"system\" : \"http://www.cms.gov/Medicare/Coding/HCPCSReleaseCodeSets\",\n \"code\" : \"99212\",\n \"display\" : \"Established Office Visit\"\n }]\n },\n \"servicedDate\" : \"2005-05-10\",\n \"locationCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set\",\n \"code\" : \"11\"\n }]\n }\n }]\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:b0881003-0d22-499d-840b-91dc7f6f4479\",\n \"resource\" : {\n \"resourceType\" : \"Organization\",\n \"id\" : \"b0881003-0d22-499d-840b-91dc7f6f4479\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-requestor\"]\n },\n \"identifier\" : [{\n \"system\" : \"http://hl7.org/fhir/sid/us-npi\",\n \"value\" : \"8189991234\"\n }],\n \"active\" : true,\n \"type\" : [{\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/98\",\n \"code\" : \"X3\"\n }]\n }],\n \"name\" : \"DR. JOE SMITH CORPORATION\",\n \"address\" : [{\n \"line\" : [\"111 1ST STREET\"],\n \"city\" : \"SAN DIEGO\",\n \"state\" : \"CA\",\n \"postalCode\" : \"92101\",\n \"country\" : \"US\"\n }]\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:ff7adc9d-8854-4947-874a-8b61bca953c1\",\n \"resource\" : {\n \"resourceType\" : \"Organization\",\n \"id\" : \"ff7adc9d-8854-4947-874a-8b61bca953c1\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-insurer\"]\n },\n \"identifier\" : [{\n \"system\" : \"http://hl7.org/fhir/sid/us-npi\",\n \"value\" : \"8383066098\"\n }],\n \"active\" : true,\n \"type\" : [{\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/98\",\n \"code\" : \"PR\"\n }]\n }],\n \"name\" : \"MARYLAND CAPITAL INSURANCE COMPANY\"\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:39f01aed-5a64-4301-8449-82b3d60f330c\",\n \"resource\" : {\n \"resourceType\" : \"Coverage\",\n \"id\" : \"39f01aed-5a64-4301-8449-82b3d60f330c\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-coverage\"]\n },\n \"status\" : \"active\",\n \"beneficiary\" : {\n \"reference\" : \"urn:uuid:0b321e9e-571b-4f83-8cea-fa23424383bb\"\n },\n \"payor\" : [{\n \"reference\" : \"urn:uuid:ff7adc9d-8854-4947-874a-8b61bca953c1\"\n }]\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:0b321e9e-571b-4f83-8cea-fa23424383bb\",\n \"resource\" : {\n \"resourceType\" : \"Patient\",\n \"id\" : \"0b321e9e-571b-4f83-8cea-fa23424383bb\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-subscriber\"]\n },\n \"extension\" : [{\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-militaryStatus\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/584\",\n \"code\" : \"RU\"\n }]\n }\n }],\n \"identifier\" : [{\n \"system\" : \"http://notreal.com/MIN\",\n \"value\" : \"12345678901\"\n }],\n \"name\" : [{\n \"family\" : \"SMITH\",\n \"given\" : [\"JOE\"]\n }],\n \"gender\" : \"male\"\n }\n }]\n}",
140
140
  "options": {
141
141
  "raw": {
142
142
  "language": "json"
@@ -171,7 +171,7 @@
171
171
  ],
172
172
  "body": {
173
173
  "mode": "raw",
174
- "raw": "{\n \"resourceType\" : \"Bundle\",\n \"id\" : \"60815928-c69f-4503-b0ce-e24d3c2a0591\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-pas-request-bundle\"]\n },\n \"identifier\" : {\n \"system\" : \"http://notreal.com/SUBMITTER_TRANSACTION_IDENTIFIER\",\n \"value\" : \"902834\"\n },\n \"type\" : \"collection\",\n \"timestamp\" : \"2005-05-02T11:01:00+05:00\",\n \"entry\" : [{\n \"fullUrl\" : \"urn:uuid:2d84327e-1baf-4f68-ac42-41e5c8ad8803\",\n \"resource\" : {\n \"resourceType\" : \"Claim\",\n \"id\" : \"2d84327e-1baf-4f68-ac42-41e5c8ad8803\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-claim\"]\n },\n \"identifier\" : [{\n \"system\" : \"http://notreal.com/PATIENT_EVENT_TRACE_NUMBER\",\n \"value\" : \"1263291\",\n \"assigner\" : {\n \"identifier\" : {\n \"system\" : \"http://notreal.com/USER_ASSIGNED\",\n \"value\" : \"99102388213\"\n }\n }\n }],\n \"status\" : \"active\",\n \"type\" : {\n \"coding\" : [{\n \"system\" : \"http://terminology.hl7.org/CodeSystem/claim-type\",\n \"code\" : \"professional\"\n }]\n },\n \"use\" : \"preauthorization\",\n \"patient\" : {\n \"reference\" : \"urn:uuid:0b321e9e-571b-4f83-8cea-fa23424383bb\"\n },\n \"created\" : \"2005-05-02T11:01:00+05:00\",\n \"insurer\" : {\n \"reference\" : \"urn:uuid:ff7adc9d-8854-4947-874a-8b61bca953c1\"\n },\n \"provider\" : {\n \"reference\" : \"urn:uuid:b0881003-0d22-499d-840b-91dc7f6f4479\"\n },\n \"priority\" : {\n \"coding\" : [{\n \"system\" : \"http://terminology.hl7.org/CodeSystem/processpriority\",\n \"code\" : \"normal\"\n }]\n },\n \"insurance\" : [{\n \"sequence\" : 1,\n \"focal\" : true,\n \"coverage\" : {\n \"reference\" : \"urn:uuid:39f01aed-5a64-4301-8449-82b3d60f330c\"\n }\n }],\n \"item\" : [{\n \"extension\" : [{\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-serviceItemRequestType\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1525\",\n \"code\" : \"IN\",\n \"display\" : \"Initial Medical Services Reservation\"\n }]\n }\n },\n {\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-certificationType\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1322\",\n \"code\" : \"I\",\n \"display\" : \"Initial\"\n }]\n }\n },\n {\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-authorizationNumber\",\n \"valueString\" : \"2389983\"\n },\n {\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-administrationReferenceNumber\",\n \"valueString\" : \"12385668734\"\n }],\n \"sequence\" : 1,\n \"category\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1365\",\n \"code\" : \"1\",\n \"display\" : \"Medical Care\"\n }]\n },\n \"productOrService\" : {\n \"coding\" : [{\n \"system\" : \"http://www.cms.gov/Medicare/Coding/HCPCSReleaseCodeSets\",\n \"code\" : \"99212\",\n \"display\" : \"Established Office Visit\"\n }]\n },\n \"servicedDate\" : \"2005-05-10\",\n \"locationCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set\",\n \"code\" : \"11\"\n }]\n }\n }]\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:b0881003-0d22-499d-840b-91dc7f6f4479\",\n \"resource\" : {\n \"resourceType\" : \"Organization\",\n \"id\" : \"b0881003-0d22-499d-840b-91dc7f6f4479\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-requestor\"]\n },\n \"identifier\" : [{\n \"system\" : \"http://hl7.org/fhir/sid/us-npi\",\n \"value\" : \"8189991234\"\n }],\n \"active\" : true,\n \"type\" : [{\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/98\",\n \"code\" : \"X3\"\n }]\n }],\n \"name\" : \"DR. JOE SMITH CORPORATION\",\n \"address\" : [{\n \"line\" : [\"111 1ST STREET\"],\n \"city\" : \"SAN DIEGO\",\n \"state\" : \"CA\",\n \"postalCode\" : \"92101\",\n \"country\" : \"US\"\n }]\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:ff7adc9d-8854-4947-874a-8b61bca953c1\",\n \"resource\" : {\n \"resourceType\" : \"Organization\",\n \"id\" : \"ff7adc9d-8854-4947-874a-8b61bca953c1\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-insurer\"]\n },\n \"identifier\" : [{\n \"system\" : \"http://hl7.org/fhir/sid/us-npi\",\n \"value\" : \"789312\"\n }],\n \"active\" : true,\n \"type\" : [{\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/98\",\n \"code\" : \"PR\"\n }]\n }],\n \"name\" : \"MARYLAND CAPITAL INSURANCE COMPANY\"\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:39f01aed-5a64-4301-8449-82b3d60f330c\",\n \"resource\" : {\n \"resourceType\" : \"Coverage\",\n \"id\" : \"39f01aed-5a64-4301-8449-82b3d60f330c\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-coverage\"]\n },\n \"status\" : \"active\",\n \"beneficiary\" : {\n \"reference\" : \"urn:uuid:0b321e9e-571b-4f83-8cea-fa23424383bb\"\n },\n \"payor\" : [{\n \"reference\" : \"urn:uuid:ff7adc9d-8854-4947-874a-8b61bca953c1\"\n }]\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:0b321e9e-571b-4f83-8cea-fa23424383bb\",\n \"resource\" : {\n \"resourceType\" : \"Patient\",\n \"id\" : \"0b321e9e-571b-4f83-8cea-fa23424383bb\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-subscriber\"]\n },\n \"extension\" : [{\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-militaryStatus\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/584\",\n \"code\" : \"RU\"\n }]\n }\n }],\n \"identifier\" : [{\n \"system\" : \"http://notreal.com/MIN\",\n \"value\" : \"12345678901\"\n }],\n \"name\" : [{\n \"family\" : \"SMITH\",\n \"given\" : [\"JOE\"]\n }],\n \"gender\" : \"male\"\n }\n }]\n}",
174
+ "raw": "{\n \"resourceType\" : \"Bundle\",\n \"id\" : \"60815928-c69f-4503-b0ce-e24d3c2a0591\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-pas-request-bundle\"]\n },\n \"identifier\" : {\n \"system\" : \"http://notreal.com/SUBMITTER_TRANSACTION_IDENTIFIER\",\n \"value\" : \"902834\"\n },\n \"type\" : \"collection\",\n \"timestamp\" : \"2005-05-02T11:01:00+05:00\",\n \"entry\" : [{\n \"fullUrl\" : \"urn:uuid:2d84327e-1baf-4f68-ac42-41e5c8ad8803\",\n \"resource\" : {\n \"resourceType\" : \"Claim\",\n \"id\" : \"2d84327e-1baf-4f68-ac42-41e5c8ad8803\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-claim\"]\n },\n \"identifier\" : [{\n \"system\" : \"http://notreal.com/PATIENT_EVENT_TRACE_NUMBER\",\n \"value\" : \"1263291\",\n \"assigner\" : {\n \"identifier\" : {\n \"system\" : \"http://notreal.com/USER_ASSIGNED\",\n \"value\" : \"99102388213\"\n }\n }\n }],\n \"status\" : \"active\",\n \"type\" : {\n \"coding\" : [{\n \"system\" : \"http://terminology.hl7.org/CodeSystem/claim-type\",\n \"code\" : \"professional\"\n }]\n },\n \"use\" : \"preauthorization\",\n \"patient\" : {\n \"reference\" : \"urn:uuid:0b321e9e-571b-4f83-8cea-fa23424383bb\"\n },\n \"created\" : \"2005-05-02T11:01:00+05:00\",\n \"insurer\" : {\n \"reference\" : \"urn:uuid:ff7adc9d-8854-4947-874a-8b61bca953c1\"\n },\n \"provider\" : {\n \"reference\" : \"urn:uuid:b0881003-0d22-499d-840b-91dc7f6f4479\"\n },\n \"priority\" : {\n \"coding\" : [{\n \"system\" : \"http://terminology.hl7.org/CodeSystem/processpriority\",\n \"code\" : \"normal\"\n }]\n },\n \"insurance\" : [{\n \"sequence\" : 1,\n \"focal\" : true,\n \"coverage\" : {\n \"reference\" : \"urn:uuid:39f01aed-5a64-4301-8449-82b3d60f330c\"\n }\n }],\n \"item\" : [{\n \"extension\" : [{\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-serviceItemRequestType\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1525\",\n \"code\" : \"IN\",\n \"display\" : \"Initial Medical Services Reservation\"\n }]\n }\n },\n {\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-certificationType\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1322\",\n \"code\" : \"I\",\n \"display\" : \"Initial\"\n }]\n }\n },\n {\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-authorizationNumber\",\n \"valueString\" : \"2389983\"\n },\n {\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-administrationReferenceNumber\",\n \"valueString\" : \"12385668734\"\n }],\n \"sequence\" : 1,\n \"category\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1365\",\n \"code\" : \"1\",\n \"display\" : \"Medical Care\"\n }]\n },\n \"productOrService\" : {\n \"coding\" : [{\n \"system\" : \"http://www.cms.gov/Medicare/Coding/HCPCSReleaseCodeSets\",\n \"code\" : \"99212\",\n \"display\" : \"Established Office Visit\"\n }]\n },\n \"servicedDate\" : \"2005-05-10\",\n \"locationCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set\",\n \"code\" : \"11\"\n }]\n }\n }]\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:b0881003-0d22-499d-840b-91dc7f6f4479\",\n \"resource\" : {\n \"resourceType\" : \"Organization\",\n \"id\" : \"b0881003-0d22-499d-840b-91dc7f6f4479\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-requestor\"]\n },\n \"identifier\" : [{\n \"system\" : \"http://hl7.org/fhir/sid/us-npi\",\n \"value\" : \"8189991234\"\n }],\n \"active\" : true,\n \"type\" : [{\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/98\",\n \"code\" : \"X3\"\n }]\n }],\n \"name\" : \"DR. JOE SMITH CORPORATION\",\n \"address\" : [{\n \"line\" : [\"111 1ST STREET\"],\n \"city\" : \"SAN DIEGO\",\n \"state\" : \"CA\",\n \"postalCode\" : \"92101\",\n \"country\" : \"US\"\n }]\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:ff7adc9d-8854-4947-874a-8b61bca953c1\",\n \"resource\" : {\n \"resourceType\" : \"Organization\",\n \"id\" : \"ff7adc9d-8854-4947-874a-8b61bca953c1\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-insurer\"]\n },\n \"identifier\" : [{\n \"system\" : \"http://hl7.org/fhir/sid/us-npi\",\n \"value\" : \"8383066098\"\n }],\n \"active\" : true,\n \"type\" : [{\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/98\",\n \"code\" : \"PR\"\n }]\n }],\n \"name\" : \"MARYLAND CAPITAL INSURANCE COMPANY\"\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:39f01aed-5a64-4301-8449-82b3d60f330c\",\n \"resource\" : {\n \"resourceType\" : \"Coverage\",\n \"id\" : \"39f01aed-5a64-4301-8449-82b3d60f330c\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-coverage\"]\n },\n \"status\" : \"active\",\n \"beneficiary\" : {\n \"reference\" : \"urn:uuid:0b321e9e-571b-4f83-8cea-fa23424383bb\"\n },\n \"payor\" : [{\n \"reference\" : \"urn:uuid:ff7adc9d-8854-4947-874a-8b61bca953c1\"\n }]\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:0b321e9e-571b-4f83-8cea-fa23424383bb\",\n \"resource\" : {\n \"resourceType\" : \"Patient\",\n \"id\" : \"0b321e9e-571b-4f83-8cea-fa23424383bb\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-subscriber\"]\n },\n \"extension\" : [{\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-militaryStatus\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/584\",\n \"code\" : \"RU\"\n }]\n }\n }],\n \"identifier\" : [{\n \"system\" : \"http://notreal.com/MIN\",\n \"value\" : \"12345678901\"\n }],\n \"name\" : [{\n \"family\" : \"SMITH\",\n \"given\" : [\"JOE\"]\n }],\n \"gender\" : \"male\"\n }\n }]\n}",
175
175
  "options": {
176
176
  "raw": {
177
177
  "language": "json"
@@ -130,6 +130,12 @@ module DaVinciPASTestKit
130
130
  end
131
131
  end
132
132
 
133
+ def tests_conf_6?
134
+ ig_metadata.ig_version.starts_with?('v2.2') &&
135
+ system == 'server' &&
136
+ ['ClaimResponse', 'ClaimInquiryResponse'].include?(resource_type)
137
+ end
138
+
133
139
  def generate
134
140
  FileUtils.mkdir_p(output_file_directory)
135
141
  File.write(output_file_name, output)
@@ -39,7 +39,7 @@ module DaVinciPASTestKit
39
39
  target_element
40
40
  end
41
41
 
42
- # rubocop:disable Metrics/CyclomaticComplexity
42
+ # rubocop:disable-next Metrics/CyclomaticComplexity
43
43
  def take_discriminator_step(current_element, path)
44
44
  if path.start_with?('extension(')
45
45
  ext_url, remaining_path = path.delete_prefix("extension('").split("')", 2)
@@ -74,7 +74,6 @@ module DaVinciPASTestKit
74
74
 
75
75
  [next_element, remaining_path&.delete_prefix('.')]
76
76
  end
77
- # rubocop:enable Metrics/CyclomaticComplexity
78
77
 
79
78
  def value_slices
80
79
  must_support_value_slice_elements.map do |current_element|
@@ -110,6 +110,20 @@ module DaVinciPASTestKit
110
110
  ig_metadata.profiles.select { |profile_metadata| MustSupportTargetProfiles.request_profile?(profile_metadata) }
111
111
  end
112
112
 
113
+ # Additional Claim Inquiry Response checks are v2.2.x-specific, so they are only included
114
+ # in the v2.2+ server element support group.
115
+ def additional_claim_inquiry_response_requirements_supported?
116
+ ig_metadata.ig_version.start_with?('v2.2')
117
+ end
118
+
119
+ def additional_submit_request_requirements_supported?
120
+ ig_metadata.ig_version == 'v2.2.1'
121
+ end
122
+
123
+ def additional_claim_inquiry_response_requirements_group_id
124
+ "pas_server_#{ig_version_for_id}_claim_inquiry_responses"
125
+ end
126
+
113
127
  def verifies_requirements
114
128
  case ig_metadata.ig_version
115
129
  when 'v2.0.1'
@@ -123,9 +137,18 @@ module DaVinciPASTestKit
123
137
  ['hl7.fhir.us.davinci-pas_2.0.1@35']
124
138
  when 'inquire_request_v2.0.1'
125
139
  ['hl7.fhir.us.davinci-pas_2.0.1@36']
140
+ when 'submit_request_v2.2.1', 'inquire_request_v2.2.1'
141
+ [
142
+ 'hl7.fhir.us.davinci-pas_2.2.1@conf-4',
143
+ 'hl7.fhir.us.davinci-pas_2.2.1@conf-5'
144
+ ]
126
145
  end
127
146
  end
128
147
 
148
+ def replaced_pa_inquire_reference_test?
149
+ ig_version == 'v2.2.1'
150
+ end
151
+
129
152
  def description
130
153
  <<~DESCRIPTION
131
154
  Demonstrate the ability of the server to support all PAS-defined profiles
@@ -57,6 +57,12 @@ module DaVinciPASTestKit
57
57
  identifiers.map(&:inspect).join(', ')
58
58
  end
59
59
 
60
+ # v2.2+ suites use the targeted suppression list; v2.0.1 keeps the legacy list plus the
61
+ # targeted entries.
62
+ def suppressed_messages_constant
63
+ ig_metadata.ig_version.start_with?('v2.2') ? 'V221_SUPPRESSED_MESSAGES' : 'V201_SUPPRESSED_MESSAGES'
64
+ end
65
+
60
66
  def ig_link
61
67
  case ig_metadata.ig_version
62
68
  when 'v2.0.1'
@@ -38,8 +38,9 @@ module DaVinciPASTestKit
38
38
  )
39
39
  <%- if verifies_requirements -%>
40
40
  verifies_requirements <%= verifies_requirements.map { |r| "'#{r}'" }.join(', ') %>
41
- <%- end -%>
42
-
41
+ <%- end -%><%- if tests_conf_6? %>
42
+ verifies_requirements 'hl7.fhir.us.davinci-pas_2.2.1@conf-6'
43
+ <%- end %>
43
44
  config(
44
45
  options: {
45
46
  resource_type: '<%= resource_type %>',
@@ -3,6 +3,16 @@ require_relative '../../claim_submit_operation_test'
3
3
  require_relative '../../server_response_bundle_validation_test'
4
4
  require_relative '../../claim_inquire_operation_test'
5
5
  require_relative '../../<%= ig_version %>/must_support/pas_server_must_support_request_profiles_test'
6
+ <%- if additional_submit_request_requirements_supported? -%>
7
+ require_relative '../../<%= ig_version %>/pas_server_no_custom_extensions_test'
8
+ <%- end -%>
9
+ <%- if additional_claim_inquiry_response_requirements_supported? -%>
10
+ require_relative '../../<%= ig_version %>/pas_server_claim_inquiry_responses_group'
11
+ <%- end -%>
12
+ <% if replaced_pa_inquire_reference_test? -%>
13
+ require_relative '../../<%= ig_version %>/server_replaced_pa_inquire_reference_input_test'
14
+ require_relative '../../<%= ig_version %>/server_replaced_pa_inquire_reference_test'
15
+ <% end -%>
6
16
  <%- profile_test_files('submit', 'request').each do |file_name| -%>
7
17
  require_relative '<%= file_name %>'
8
18
  <%- end -%>
@@ -92,6 +102,14 @@ module DaVinciPASTestKit
92
102
  }
93
103
  )
94
104
  end
105
+ <%- if operation == 'submit' && additional_submit_request_requirements_supported? -%>
106
+
107
+ test from: :pas_server_<%= ig_version_for_id %>_no_custom_extensions_test
108
+ <%- end -%>
109
+ <%- if operation == 'inquire' && replaced_pa_inquire_reference_test? -%>
110
+ test from: :pas_server_<%= ig_version_for_id %>_replaced_pa_inquire_reference_input_test
111
+ test from: :pas_server_<%= ig_version_for_id %>_replaced_pa_inquire_reference_test
112
+ <%- end -%>
95
113
  end
96
114
 
97
115
  group do
@@ -115,6 +133,10 @@ module DaVinciPASTestKit
115
133
  test from: :<%= id %>
116
134
  <%- end -%>
117
135
  end
136
+ <%- if operation == 'inquire' && additional_claim_inquiry_response_requirements_supported? -%>
137
+
138
+ group from: :<%= additional_claim_inquiry_response_requirements_group_id %>
139
+ <%- end -%>
118
140
  end<%end%>
119
141
  end
120
142
  end
@@ -22,8 +22,7 @@ module DaVinciPASTestKit
22
22
 
23
23
  The best place to get started is the [Server Testing
24
24
  Instructions](https://github.com/inferno-framework/davinci-pas-test-kit/wiki/Server-Instructions-<%= ig_metadata.ig_version %>),
25
- which provides a step-by-step guide for running the tests against a client and provides
26
- an example client implemented in Postman. Visit the [Server Testing
25
+ which provides a step-by-step guide for running the tests. Visit the [Server Testing
27
26
  Details](https://github.com/inferno-framework/davinci-pas-test-kit/wiki/Server-Details)
28
27
  documentation for information about technical implementation and known limitations of these tests.
29
28
 
@@ -34,6 +33,7 @@ module DaVinciPASTestKit
34
33
  - Approval of a prior authorization request
35
34
  - Denial of a prior authorization request
36
35
  - Pending of a prior authorization request and a subsequent final decision
36
+ - Claim updates (except in v2.0.1)
37
37
  - Inability to process a prior authorization request
38
38
  - The ability of the server to handle the full scope of data required by PAS, including
39
39
  - Ability to process prior auth requests and inquiries with all PAS profiles and all must support elements on those profiles
@@ -48,7 +48,7 @@ module DaVinciPASTestKit
48
48
  required features and functionality are present. HL7® FHIR® resources are
49
49
  validated with the Java validator using `tx.fhir.org` as the terminology server.
50
50
 
51
- %)
51
+ )
52
52
 
53
53
  links [
54
54
  {
@@ -88,8 +88,7 @@ module DaVinciPASTestKit
88
88
  exclude_message do |message|
89
89
  # Messages expected of the form `<ResourceType>: <FHIRPath>: <message>`
90
90
  # We strip `<ResourceType>: <FHIRPath>: ` for the sake of matching
91
- SUPPRESSED_MESSAGES.match?(message.message.sub(/\A\S+: \S+: /, '')) ||
92
- message.message.downcase.include?('x12')
91
+ <%= suppressed_messages_constant %>.match?(message.message.sub(/\A\S+: \S+: /, ''))
93
92
  end
94
93
 
95
94
  validation_context do
@@ -72,6 +72,7 @@ module DaVinciPASTestKit
72
72
  description %(
73
73
  <%= bundle_validation_test_description('submit', 'response').gsub("\n", "\n" + " "*12) %>
74
74
  )
75
+
75
76
  config(
76
77
  options: {
77
78
  use_case: '<%= use_case %>',
@@ -114,6 +115,8 @@ module DaVinciPASTestKit
114
115
  end
115
116
  test from: :pas_notification_pas_conformance_test do
116
117
  id :pas_server_<%= ig_version_for_id %>_notification_pas_conformance_<%= use_case %>
118
+ verifies_requirements 'hl7.fhir.us.davinci-pas_2.2.1@spec-61',
119
+ 'hl7.fhir.us.davinci-pas_2.2.1@spec-62'
117
120
  end
118
121
  <% else -%>
119
122
  test from: :subscriptions_r4_server_id_only_conformance do