FQM-306: Verify server does not require billing options extension#80
Merged
Conversation
tstrass
approved these changes
May 18, 2026
dd06504 to
990502f
Compare
arscan
reviewed
May 19, 2026
| module DaVinciCRDTestKit | ||
| module V221 | ||
| class ServerRequiredCardResponseValidationGroup < Inferno::TestGroup | ||
| title 'Required Card Response Validation' |
Contributor
There was a problem hiding this comment.
I believe this causes a 'purple error' due to this line https://github.com/inferno-framework/davinci-crd-test-kit/blame/fa44599cbc460698e0b8f48c4ae26cdab987357f/lib/davinci_crd_test_kit/server/server_test_helper.rb#L10
arscan
approved these changes
May 20, 2026
karlnaden
approved these changes
May 20, 2026
Draft
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This branch adds a test which verifies that the server returns a successful response when the client does not provide a billing options extension. It does not make any new requests, but instead inspects the request bodies provided by the user to find requests which do not use the billing options extension.
Testing Guidance
The test passes against the client suite.
Use the following as the request body input for order sign to see the test skip:
[ { "hookInstance": "d1577c69-dfbe-77ad-ba6d-3e05e953b2ea", "fhirServer": "https://inferno.healthit.gov/reference-server/r4", "hook": "order-sign", "fhirAuthorization": { "access_token": "SAMPLE_TOKEN", "token_type": "Bearer", "expires_in": 300, "scope": "user/AllergyIntolerance.rs user/CarePlan.rs user/CareTeam.rs user/Condition.rs user/Device.rs user/DiagnosticReport.rs user/DocumentReference.rs user/Encounter.rs user/Goal.rs user/Immunization.rs user/Location.rs user/Medication.rs user/MedicationRequest.rs user/Observation.rs user/Organization.rs user/Patient.rs user/Practitioner.rs user/PractitionerRole.rs user/Procedure.rs user/Provenance.rs", "subject": "cds-service4" }, "context": { "userId": "Practitioner/pra1234", "patientId": "pat015", "encounterId": "pat015-rad-encounter", "draftOrders": { "resourceType": "Bundle", "type": "collection", "entry": [ { "fullUrl": "urn:uuid:3aa170b9-48ce-4446-88f6-fb08870e8d4d", "resource": { "resourceType": "DeviceRequest", "id": "devreq-015-e0250", "identifier": [ { "type": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/v2-0203", "code": "PLAC" } ] }, "value": "f105372f-bbef-442c-ad7a-708fee7f8c93" } ], "status": "draft", "intent": "original-order", "codeCodeableConcept": { "coding": [ { "system": "https://bluebutton.cms.gov/resources/codesystem/hcpcs", "code": "E0250", "display": "Hospital bed fixed height with any type of side rails, mattress" } ], "extension": [ { "url": "http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-billing-options", "valueCodeableConcept": { "coding": [ { "code": "DEF" } ] } } ] }, "subject": { "reference": "Patient/pat015" }, "authoredOn": "2023-01-01T00:00:00Z", "requester": { "reference": "Practitioner/pra1234" }, "performer": { "reference": "Practitioner/pra1234" }, "insurance": [ { "reference": "Coverage/cov015" } ] } } ] } }, "extension": { "davinci-crd.configuration": { "alt-drug": true }, "davinci-crd.requestedVersion": "2.2" }, "prefetch": { "patient": { "resourceType": "Patient", "id": "pat015", "gender": "male", "birthDate": "2015-02-23", "address": [ { "use": "home", "type": "both", "state": "NY", "city": "Buffalo", "postalCode": "14210", "line": [ "202 Burlington Road" ] } ], "name": [ { "use": "official", "family": "Oster", "given": [ "William", "Hale", "Oster" ] } ], "telecom": [ { "system": "phone", "value": "(781) 555-5555", "use": "home", "rank": 1 }, { "system": "phone", "value": "(781) 555 5613", "use": "work", "rank": 2 }, { "system": "phone", "value": "(781) 555 8834", "use": "old", "period": { "end": "2014" } } ], "identifier": [ { "use": "usual", "type": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/v2-0203", "code": "MR" } ], "text": "Medical Record Number" }, "system": "http://hl7.org/fhir/sid/us-medicare", "value": "0M34355006FW" } ] }, "encounter": { "resourceType": "Encounter", "id": "pat015-rad-encounter", "status": "finished", "class": { "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", "code": "HH", "display": "home health" }, "type": [ { "coding": [ { "system": "http://snomed.info/sct", "code": "185345009", "display": "Encounter for symptom" } ] } ], "priority": { "coding": [ { "system": "http://snomed.info/sct", "code": "709122007", "display": "As soon as possible (qualifier value)" } ] }, "subject": { "reference": "Patient/pat015", "display": "Roosevelt Theodore" }, "participant": [ { "individual": { "reference": "Practitioner/pra1234", "display": "Dr. Jane Doe" }, "type": [ { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType", "code": "PPRF", "display": "primary performer" } ] } ] } ], "length": { "value": 56, "unit": "minutes", "system": "http://unitsofmeasure.org", "code": "min" }, "period": { "start": "2020-07-01T10:40:10+01:00", "end": "2020-07-01T12:40:10+01:00" }, "reasonCode": [ { "coding": [ { "system": "http://hl7.org/fhir/sid/icd-10-cm", "code": "J44.9", "display": "Chronic obstructive pulmonary disease, unspecified" } ] } ], "diagnosis": [ { "condition": { "reference": "Condition/cond015a", "display": "The patient is hospitalized for stroke" }, "use": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/diagnosis-role", "code": "AD", "display": "Admission diagnosis" } ] }, "rank": 2 }, { "condition": { "reference": "Condition/cond015a", "display": "The patient is hospitalized for lung condition" }, "use": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/diagnosis-role", "code": "CC", "display": "Chief complaint" } ] }, "rank": 1 } ], "location": [ { "location": { "display": "observation2c" } } ] }, "coverage": { "resourceType": "Bundle", "type": "searchset", "total": 1, "link": [ { "relation": "self", "url": "https://inferno.healthit.gov/reference-server/r4/Coverage?patient=pat015" } ], "entry": [ { "fullUrl": "https://inferno.healthit.gov/reference-server/r4/Coverage/cov015", "resource": { "resourceType": "Coverage", "id": "cov015", "subscriberId": "10A3D58WH456", "relationship": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/subscriber-relationship", "code": "self" } ] }, "beneficiary": { "reference": "Patient/pat015" }, "status": "active", "class": [ { "type": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/coverage-class", "code": "plan" } ] }, "value": "Medicare Part A" } ], "payor": [ { "reference": "Organization/org1234" } ] }, "search": { "mode": "match" } } ] }, "devices": null, "medications": null, "practitionerRoles": null, "organizations": null, "practitioners": { "resourceType": "Bundle", "type": "collection", "entry": [ { "fullUrl": "urn:uuid:3aa170b9-48ce-4446-88f6-fb08870e8d3d", "resource": { "resourceType": "Practitioner", "id": "pra1234", "meta": { "profile": [ "http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner" ] }, "identifier": [ { "system": "http://hl7.org/fhir/sid/us-npi", "value": "1122334455" } ], "address": [ { "use": "home", "type": "both", "state": "NY", "city": "Buffalo", "postalCode": "14210", "line": [ "840 Seneca St" ] } ], "telecom": [ { "system": "phone", "value": "716-873-1557" }, { "system": "email", "value": "[email protected]" } ], "name": [ { "use": "official", "family": "Doe", "given": [ "Jane", "Betty" ], "prefix": [ "Dr." ] } ], "qualification": [ { "code": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/v2-0360", "code": "MD", "display": "Doctor of Medicine" } ], "text": "Doctor of Medicine" }, "period": { "start": "1995" }, "issuer": { "display": "Example University" } } ] } } ] }, "locations": null } } ]Anticipated Provider-side Test Impact
None