Skip to content

FQM-306: Verify server does not require billing options extension#80

Merged
karlnaden merged 6 commits into
support-v2.2.0from
fqm-306-no-billing-options
May 20, 2026
Merged

FQM-306: Verify server does not require billing options extension#80
karlnaden merged 6 commits into
support-v2.2.0from
fqm-306-no-billing-options

Conversation

@Jammjammjamm
Copy link
Copy Markdown
Contributor

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

@Jammjammjamm Jammjammjamm requested review from arscan and tstrass May 13, 2026 15:16
@Jammjammjamm Jammjammjamm self-assigned this May 13, 2026
@Jammjammjamm Jammjammjamm force-pushed the fqm-306-no-billing-options branch from dd06504 to 990502f Compare May 19, 2026 12:18
module DaVinciCRDTestKit
module V221
class ServerRequiredCardResponseValidationGroup < Inferno::TestGroup
title 'Required Card Response Validation'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Jammjammjamm Jammjammjamm requested a review from arscan May 20, 2026 12:15
@arscan arscan marked this pull request as ready for review May 20, 2026 16:29
@arscan arscan requested a review from karlnaden May 20, 2026 16:29
@karlnaden karlnaden merged commit 27e21bd into support-v2.2.0 May 20, 2026
@karlnaden karlnaden mentioned this pull request May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants