From d83db647f3b948986fabaa7445af5dc6cb49639b Mon Sep 17 00:00:00 2001 From: Tom Strassner Date: Fri, 7 Jun 2024 08:50:53 -0500 Subject: [PATCH] Add client preset (#6) * Add client preset * Add preset info to client suite description --- config/presets/pas_client_example.json | 30 +++++++++++++++++++ .../docs/client_suite_description_v201.md | 5 ++++ 2 files changed, 35 insertions(+) create mode 100644 config/presets/pas_client_example.json diff --git a/config/presets/pas_client_example.json b/config/presets/pas_client_example.json new file mode 100644 index 0000000..e33d686 --- /dev/null +++ b/config/presets/pas_client_example.json @@ -0,0 +1,30 @@ +{ + "title": "Example PAS Server Responses", + "id": "pas_client_example", + "test_suite_id": "davinci_pas_client_suite_v201", + "inputs": [ + { + "name": "client_id", + "value": "8e065803bfd3cd8a9b59e488160b88f6", + "_title": "Client ID", + "_description": "\n Client ID that the client will use to request an access token.\n ", + "_type": "text" + }, + { + "name": "denial_json_response", + "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}", + "_title": "Claim denied response JSON", + "_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 ", + "_type": "textarea", + "_optional": true + }, + { + "name": "pended_json_response", + "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}", + "_title": "Claim pended response JSON", + "_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 ", + "_type": "textarea", + "_optional": true + } + ] +} diff --git a/lib/davinci_pas_test_kit/docs/client_suite_description_v201.md b/lib/davinci_pas_test_kit/docs/client_suite_description_v201.md index 803c102..ceb0bd0 100644 --- a/lib/davinci_pas_test_kit/docs/client_suite_description_v201.md +++ b/lib/davinci_pas_test_kit/docs/client_suite_description_v201.md @@ -77,6 +77,11 @@ json-encoded FHIR bundle in the "Claim pended response JSON" and "Claim deny res clicking the '*Run All Tests*' button. These responses will be echoed back when a request is made during the corresponding test. +Selecting the *Example PAS Server Responses* Preset in the dropdown in the upper left will fill in example +FHIR bundles for the pended and deny responses. It will also fill in a sample value for the Client ID, +which is only necessary for the *Demonstrate Authorization* test group, which can be skipped in favor of +manual bearer token input in subsequent tests as described above. + ### Postman-based Demo If you do not have a PAS client but would like to try the tests out, you can use