davinci_pas_test_kit 0.11.1 → 0.12.0
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.
- checksums.yaml +4 -4
- data/config/presets/pas_client_example.json +30 -0
- data/config/presets/pas_ri.json +69 -0
- data/lib/davinci_pas_test_kit/client_suite.rb +4 -2
- data/lib/davinci_pas_test_kit/docs/PAS Requirements Interpretation.xlsx +0 -0
- data/lib/davinci_pas_test_kit/fhir_resource_navigation.rb +3 -3
- data/lib/davinci_pas_test_kit/generated/v2.0.1/server_suite.rb +4 -2
- data/lib/davinci_pas_test_kit/generator/templates/group.rb.erb +129 -0
- data/lib/davinci_pas_test_kit/generator/templates/must_support.rb.erb +73 -0
- data/lib/davinci_pas_test_kit/generator/templates/operation.rb.erb +62 -0
- data/lib/davinci_pas_test_kit/generator/templates/resource_list.rb.erb +13 -0
- data/lib/davinci_pas_test_kit/generator/templates/suite.rb.erb +91 -0
- data/lib/davinci_pas_test_kit/generator/templates/validation.rb.erb +98 -0
- data/lib/davinci_pas_test_kit/generator/templates/validation_client.rb.erb +50 -0
- data/lib/davinci_pas_test_kit/igs/davinci_pas_2.0.1.tgz +0 -0
- data/lib/davinci_pas_test_kit/metadata.rb +87 -0
- data/lib/davinci_pas_test_kit/version.rb +2 -1
- data/lib/davinci_pas_test_kit.rb +1 -0
- metadata +19 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d8d0b9a954307d87237d925246cea164d132e5c224b78986f6e949ef2655e96
|
4
|
+
data.tar.gz: 43e264bd0e029fbc0e183818e8b7d6b7358765566ea1776cae732d6cf810a805
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 230bd86fc641dacf8492c49d7e322c954c391ece2c6a6474886336709141e7862fd1d51612cb36c303e4323bc88b013bb7161acf279d7c0a0c8f8c841b99a338
|
7
|
+
data.tar.gz: de2f53ac72aa59f9cd1e985b9b3685a8228e4981d202c9f9bb82ad6376ba001c079b71822f1341c374485dfb542f9e3be7d6dd81b1974e2e4a5bf7ed1702d185
|
@@ -0,0 +1,30 @@
|
|
1
|
+
{
|
2
|
+
"title": "Example PAS Server Responses",
|
3
|
+
"id": "pas_client_example",
|
4
|
+
"test_suite_id": "davinci_pas_client_suite_v201",
|
5
|
+
"inputs": [
|
6
|
+
{
|
7
|
+
"name": "client_id",
|
8
|
+
"value": "8e065803bfd3cd8a9b59e488160b88f6",
|
9
|
+
"_title": "Client ID",
|
10
|
+
"_description": "\n Client ID that the client will use to request an access token.\n ",
|
11
|
+
"_type": "text"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"name": "denial_json_response",
|
15
|
+
"value": "{\r\n \"id\": \"095641c0-8ad9-41ce-abae-f53b446fefff\",\r\n \"meta\": {\r\n \"profile\": [\r\n \"http:\/\/hl7.org\/fhir\/us\/davinci-pas\/StructureDefinition\/profile-pas-response-bundle\"\r\n ]\r\n },\r\n \"type\": \"collection\",\r\n \"timestamp\": \"2024-01-30T13:29:32Z\",\r\n \"entry\": [\r\n {\r\n \"fullUrl\": \"urn:uuid:45e176b5-c381-42df-9264-ffd74a38ef92\",\r\n \"resource\": {\r\n \"id\": \"45e176b5-c381-42df-9264-ffd74a38ef92\",\r\n \"meta\": {\r\n \"profile\": [\r\n \"http:\/\/hl7.org\/fhir\/us\/davinci-pas\/StructureDefinition\/profile-claimresponse\"\r\n ]\r\n },\r\n \"identifier\": [\r\n {\r\n \"system\": \"http:\/\/notreal.com\/PATIENT_EVENT_TRACE_NUMBER\",\r\n \"value\": \"111366\",\r\n \"assigner\": {\r\n \"identifier\": {\r\n \"system\": \"http:\/\/notreal.com\/USER_ASSIGNED\",\r\n \"value\": \"5556667771\"\r\n }\r\n }\r\n }\r\n ],\r\n \"status\": \"active\",\r\n \"type\": {\r\n \"coding\": [\r\n {\r\n \"system\": \"http:\/\/terminology.hl7.org\/CodeSystem\/claim-type\",\r\n \"code\": \"professional\"\r\n }\r\n ]\r\n },\r\n \"use\": \"preauthorization\",\r\n \"patient\": {\r\n \"reference\": \"urn:uuid:0b321e9e-571b-4f83-8cea-fa23424383bb\"\r\n },\r\n \"created\": \"2024-01-30T13:29:32Z\",\r\n \"insurer\": {\r\n \"reference\": \"urn:uuid:ff7adc9d-8854-4947-874a-8b61bca953c1\"\r\n },\r\n \"requestor\": {\r\n \"reference\": \"urn:uuid:b0881003-0d22-499d-840b-91dc7f6f4479\"\r\n },\r\n \"outcome\": \"complete\",\r\n \"item\": [\r\n {\r\n \"extension\": [\r\n {\r\n \"url\": \"http:\/\/hl7.org\/fhir\/us\/davinci-pas\/StructureDefinition\/extension-itemPreAuthIssueDate\",\r\n \"valueDate\": \"2024-01-30\"\r\n },\r\n {\r\n \"url\": \"http:\/\/hl7.org\/fhir\/us\/davinci-pas\/StructureDefinition\/extension-itemPreAuthPeriod\",\r\n \"valuePeriod\": {\r\n \"start\": \"2024-01-30\",\r\n \"end\": \"2024-02-29\"\r\n }\r\n }\r\n ],\r\n \"itemSequence\": 1,\r\n \"adjudication\": [\r\n {\r\n \"extension\": [\r\n {\r\n \"extension\": [\r\n {\r\n \"url\": \"http:\/\/hl7.org\/fhir\/us\/davinci-pas\/StructureDefinition\/extension-reviewActionCode\",\r\n \"valueCodeableConcept\": {\r\n \"coding\": [\r\n {\r\n \"system\": \"https:\/\/codesystem.x12.org\/005010\/306\",\r\n \"code\": \"DENIEDCODE\",\r\n \"display\": \"Not Certified\"\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"url\": \"http:\/\/hl7.org\/fhir\/us\/davinci-pas\/StructureDefinition\/extension-reviewAction\"\r\n }\r\n ],\r\n \"category\": {\r\n \"coding\": [\r\n {\r\n \"system\": \"http:\/\/terminology.hl7.org\/CodeSystem\/adjudication\",\r\n \"code\": \"submitted\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"extension\": [\r\n {\r\n \"url\": \"http:\/\/hl7.org\/fhir\/us\/davinci-pas\/StructureDefinition\/extension-itemPreAuthIssueDate\",\r\n \"valueDate\": \"2024-01-30\"\r\n },\r\n {\r\n \"url\": \"http:\/\/hl7.org\/fhir\/us\/davinci-pas\/StructureDefinition\/extension-itemPreAuthPeriod\",\r\n \"valuePeriod\": {\r\n \"start\": \"2024-01-30\",\r\n \"end\": \"2024-02-29\"\r\n }\r\n }\r\n ],\r\n \"itemSequence\": 2,\r\n \"adjudication\": [\r\n {\r\n \"extension\": [\r\n {\r\n \"extension\": [\r\n {\r\n \"url\": \"http:\/\/hl7.org\/fhir\/us\/davinci-pas\/StructureDefinition\/extension-reviewActionCode\",\r\n \"valueCodeableConcept\": {\r\n \"coding\": [\r\n {\r\n \"system\": \"https:\/\/codesystem.x12.org\/005010\/306\",\r\n \"code\": \"A1\",\r\n \"display\": \"Certified in total\"\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"url\": \"http:\/\/hl7.org\/fhir\/us\/davinci-pas\/StructureDefinition\/extension-reviewAction\"\r\n }\r\n ],\r\n \"category\": {\r\n \"coding\": [\r\n {\r\n \"system\": \"http:\/\/terminology.hl7.org\/CodeSystem\/adjudication\",\r\n \"code\": \"submitted\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n }\r\n ],\r\n \"resourceType\": \"ClaimResponse\"\r\n }\r\n },\r\n {\r\n \"fullUrl\": \"urn:uuid:0b321e9e-571b-4f83-8cea-fa23424383bb\",\r\n \"resource\": {\r\n \"id\": \"0b321e9e-571b-4f83-8cea-fa23424383bb\",\r\n \"meta\": {\r\n \"profile\": [\r\n \"http:\/\/hl7.org\/fhir\/us\/davinci-pas\/StructureDefinition\/profile-subscriber\"\r\n ]\r\n },\r\n \"extension\": [\r\n {\r\n \"url\": \"http:\/\/hl7.org\/fhir\/us\/davinci-pas\/StructureDefinition\/extension-militaryStatus\",\r\n \"valueCodeableConcept\": {\r\n \"coding\": [\r\n {\r\n \"system\": \"https:\/\/codesystem.x12.org\/005010\/584\",\r\n \"code\": \"RU\"\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"identifier\": [\r\n {\r\n \"system\": \"http:\/\/notreal.com\/MIN\",\r\n \"value\": \"12345678901\"\r\n }\r\n ],\r\n \"name\": [\r\n {\r\n \"family\": \"SMITH\",\r\n \"given\": [\r\n \"JOE\"\r\n ]\r\n }\r\n ],\r\n \"gender\": \"male\",\r\n \"resourceType\": \"Patient\"\r\n }\r\n },\r\n {\r\n \"fullUrl\": \"urn:uuid:ff7adc9d-8854-4947-874a-8b61bca953c1\",\r\n \"resource\": {\r\n \"id\": \"ff7adc9d-8854-4947-874a-8b61bca953c1\",\r\n \"meta\": {\r\n \"profile\": [\r\n \"http:\/\/hl7.org\/fhir\/us\/davinci-pas\/StructureDefinition\/profile-insurer\"\r\n ]\r\n },\r\n \"identifier\": [\r\n {\r\n \"system\": \"http:\/\/hl7.org\/fhir\/sid\/us-npi\",\r\n \"value\": \"789312\"\r\n }\r\n ],\r\n \"active\": true,\r\n \"type\": [\r\n {\r\n \"coding\": [\r\n {\r\n \"system\": \"https:\/\/codesystem.x12.org\/005010\/98\",\r\n \"code\": \"PR\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"name\": \"MARYLAND CAPITAL INSURANCE COMPANY\",\r\n \"resourceType\": \"Organization\"\r\n }\r\n },\r\n {\r\n \"fullUrl\": \"urn:uuid:b0881003-0d22-499d-840b-91dc7f6f4479\",\r\n \"resource\": {\r\n \"id\": \"b0881003-0d22-499d-840b-91dc7f6f4479\",\r\n \"meta\": {\r\n \"profile\": [\r\n \"http:\/\/hl7.org\/fhir\/us\/davinci-pas\/StructureDefinition\/profile-requestor\"\r\n ]\r\n },\r\n \"identifier\": [\r\n {\r\n \"system\": \"http:\/\/hl7.org\/fhir\/sid\/us-npi\",\r\n \"value\": \"8189991234\"\r\n }\r\n ],\r\n \"active\": true,\r\n \"type\": [\r\n {\r\n \"coding\": [\r\n {\r\n \"system\": \"https:\/\/codesystem.x12.org\/005010\/98\",\r\n \"code\": \"X3\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"name\": \"DR. JOE SMITH CORPORATION\",\r\n \"address\": [\r\n {\r\n \"line\": [\r\n \"111 1ST STREET\"\r\n ],\r\n \"city\": \"SAN DIEGO\",\r\n \"state\": \"CA\",\r\n \"postalCode\": \"92101\",\r\n \"country\": \"US\"\r\n }\r\n ],\r\n \"resourceType\": \"Organization\"\r\n }\r\n }\r\n ],\r\n \"resourceType\": \"Bundle\"\r\n}",
|
16
|
+
"_title": "Claim denied response JSON",
|
17
|
+
"_description": "\n The response provided will be validated against the PAS Response Bundle profile. If determined to be\n invalid, a validation message will be returned, and the test group will be skipped.\n ",
|
18
|
+
"_type": "textarea",
|
19
|
+
"_optional": true
|
20
|
+
},
|
21
|
+
{
|
22
|
+
"name": "pended_json_response",
|
23
|
+
"value": "{\r\n \"id\": \"28c1b339-16d1-4bd3-b397-cce304a31d50\",\r\n \"meta\": {\r\n \"profile\": [\r\n \"http:\/\/hl7.org\/fhir\/us\/davinci-pas\/StructureDefinition\/profile-pas-response-bundle\"\r\n ]\r\n },\r\n \"type\": \"collection\",\r\n \"timestamp\": \"2024-01-30T13:44:30Z\",\r\n \"entry\": [\r\n {\r\n \"fullUrl\": \"urn:uuid:482fd012-7825-423d-83de-69d09920198b\",\r\n \"resource\": {\r\n \"id\": \"482fd012-7825-423d-83de-69d09920198b\",\r\n \"meta\": {\r\n \"profile\": [\r\n \"http:\/\/hl7.org\/fhir\/us\/davinci-pas\/StructureDefinition\/profile-claimresponse\"\r\n ]\r\n },\r\n \"identifier\": [\r\n {\r\n \"system\": \"http:\/\/notreal.com\/PATIENT_EVENT_TRACE_NUMBER\",\r\n \"value\": \"1263291\",\r\n \"assigner\": {\r\n \"identifier\": {\r\n \"system\": \"http:\/\/notreal.com\/USER_ASSIGNED\",\r\n \"value\": \"99102388213\"\r\n }\r\n }\r\n }\r\n ],\r\n \"status\": \"active\",\r\n \"type\": {\r\n \"coding\": [\r\n {\r\n \"system\": \"http:\/\/terminology.hl7.org\/CodeSystem\/claim-type\",\r\n \"code\": \"professional\"\r\n }\r\n ]\r\n },\r\n \"use\": \"preauthorization\",\r\n \"patient\": {\r\n \"reference\": \"urn:uuid:0b321e9e-571b-4f83-8cea-fa23424383bb\"\r\n },\r\n \"created\": \"2024-01-30T13:44:30Z\",\r\n \"insurer\": {\r\n \"reference\": \"urn:uuid:ff7adc9d-8854-4947-874a-8b61bca953c1\"\r\n },\r\n \"requestor\": {\r\n \"reference\": \"urn:uuid:b0881003-0d22-499d-840b-91dc7f6f4479\"\r\n },\r\n \"outcome\": \"queued\",\r\n \"item\": [\r\n {\r\n \"extension\": [\r\n {\r\n \"url\": \"http:\/\/hl7.org\/fhir\/us\/davinci-pas\/StructureDefinition\/extension-itemPreAuthIssueDate\",\r\n \"valueDate\": \"2024-01-30\"\r\n },\r\n {\r\n \"url\": \"http:\/\/hl7.org\/fhir\/us\/davinci-pas\/StructureDefinition\/extension-itemPreAuthPeriod\",\r\n \"valuePeriod\": {\r\n \"start\": \"2024-01-30\",\r\n \"end\": \"2024-02-29\"\r\n }\r\n }\r\n ],\r\n \"itemSequence\": 1,\r\n \"adjudication\": [\r\n {\r\n \"extension\": [\r\n {\r\n \"extension\": [\r\n {\r\n \"url\": \"http:\/\/hl7.org\/fhir\/us\/davinci-pas\/StructureDefinition\/extension-reviewActionCode\",\r\n \"valueCodeableConcept\": {\r\n \"coding\": [\r\n {\r\n \"system\": \"https:\/\/codesystem.x12.org\/005010\/306\",\r\n \"code\": \"PENDEDCODE\",\r\n \"display\": \"Pended\"\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"url\": \"http:\/\/hl7.org\/fhir\/us\/davinci-pas\/StructureDefinition\/extension-reviewAction\"\r\n }\r\n ],\r\n \"category\": {\r\n \"coding\": [\r\n {\r\n \"system\": \"http:\/\/terminology.hl7.org\/CodeSystem\/adjudication\",\r\n \"code\": \"submitted\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n }\r\n ],\r\n \"resourceType\": \"ClaimResponse\"\r\n }\r\n },\r\n {\r\n \"fullUrl\": \"urn:uuid:0b321e9e-571b-4f83-8cea-fa23424383bb\",\r\n \"resource\": {\r\n \"id\": \"0b321e9e-571b-4f83-8cea-fa23424383bb\",\r\n \"meta\": {\r\n \"profile\": [\r\n \"http:\/\/hl7.org\/fhir\/us\/davinci-pas\/StructureDefinition\/profile-subscriber\"\r\n ]\r\n },\r\n \"extension\": [\r\n {\r\n \"url\": \"http:\/\/hl7.org\/fhir\/us\/davinci-pas\/StructureDefinition\/extension-militaryStatus\",\r\n \"valueCodeableConcept\": {\r\n \"coding\": [\r\n {\r\n \"system\": \"https:\/\/codesystem.x12.org\/005010\/584\",\r\n \"code\": \"RU\"\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"identifier\": [\r\n {\r\n \"system\": \"http:\/\/notreal.com\/MIN\",\r\n \"value\": \"12345678901\"\r\n }\r\n ],\r\n \"name\": [\r\n {\r\n \"family\": \"SMITH\",\r\n \"given\": [\r\n \"JOE\"\r\n ]\r\n }\r\n ],\r\n \"gender\": \"male\",\r\n \"resourceType\": \"Patient\"\r\n }\r\n },\r\n {\r\n \"fullUrl\": \"urn:uuid:ff7adc9d-8854-4947-874a-8b61bca953c1\",\r\n \"resource\": {\r\n \"id\": \"ff7adc9d-8854-4947-874a-8b61bca953c1\",\r\n \"meta\": {\r\n \"profile\": [\r\n \"http:\/\/hl7.org\/fhir\/us\/davinci-pas\/StructureDefinition\/profile-insurer\"\r\n ]\r\n },\r\n \"identifier\": [\r\n {\r\n \"system\": \"http:\/\/hl7.org\/fhir\/sid\/us-npi\",\r\n \"value\": \"789312\"\r\n }\r\n ],\r\n \"active\": true,\r\n \"type\": [\r\n {\r\n \"coding\": [\r\n {\r\n \"system\": \"https:\/\/codesystem.x12.org\/005010\/98\",\r\n \"code\": \"PR\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"name\": \"MARYLAND CAPITAL INSURANCE COMPANY\",\r\n \"resourceType\": \"Organization\"\r\n }\r\n },\r\n {\r\n \"fullUrl\": \"urn:uuid:b0881003-0d22-499d-840b-91dc7f6f4479\",\r\n \"resource\": {\r\n \"id\": \"b0881003-0d22-499d-840b-91dc7f6f4479\",\r\n \"meta\": {\r\n \"profile\": [\r\n \"http:\/\/hl7.org\/fhir\/us\/davinci-pas\/StructureDefinition\/profile-requestor\"\r\n ]\r\n },\r\n \"identifier\": [\r\n {\r\n \"system\": \"http:\/\/hl7.org\/fhir\/sid\/us-npi\",\r\n \"value\": \"8189991234\"\r\n }\r\n ],\r\n \"active\": true,\r\n \"type\": [\r\n {\r\n \"coding\": [\r\n {\r\n \"system\": \"https:\/\/codesystem.x12.org\/005010\/98\",\r\n \"code\": \"X3\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"name\": \"DR. JOE SMITH CORPORATION\",\r\n \"address\": [\r\n {\r\n \"line\": [\r\n \"111 1ST STREET\"\r\n ],\r\n \"city\": \"SAN DIEGO\",\r\n \"state\": \"CA\",\r\n \"postalCode\": \"92101\",\r\n \"country\": \"US\"\r\n }\r\n ],\r\n \"resourceType\": \"Organization\"\r\n }\r\n }\r\n ],\r\n \"resourceType\": \"Bundle\"\r\n}",
|
24
|
+
"_title": "Claim pended response JSON",
|
25
|
+
"_description": "\n The response provided will be validated against the PAS Response Bundle profile. If determined to be\n invalid, a validation message will be returned, and the test group will be skipped.\n ",
|
26
|
+
"_type": "textarea",
|
27
|
+
"_optional": true
|
28
|
+
}
|
29
|
+
]
|
30
|
+
}
|