Colorado BHA FHIR Implementation Guide
0.3.0-current - ci-build
Colorado BHA FHIR Implementation Guide, published by Colorado Behavioral Health Administration. This guide is not an authorized publication; it is the continuous build for version 0.3.0-current built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/CoBHA/CoBHRM-FHIR-IG/ and changes regularly. See the Directory of published versions
| Page standards status: Informative |
Draft for review. This page describes a practical validation and testing approach for implementations of the CoBHRM FHIR Implementation Guide.
This section describes a practical validation and testing approach for implementations of the CoBHRM FHIR Implementation Guide. The goal is to help providers, intermediaries, vendors, and BHA confirm that CoBHRM reporting data is represented consistently in FHIR before it is submitted, piloted, or used for production reporting.
Implementers SHALL be able to demonstrate the following:
Implementers SHALL validate CoBHRM FHIR content at five levels:
Each resource SHALL be valid HL7 FHIR Revision 4.0.1 JSON or XML and SHALL conform to the base FHIR resource rules for its resource type:
Patient resources SHALL be valid FHIR Patient resources.EpisodeOfCare resources SHALL be valid FHIR EpisodeOfCare resources.Encounter resources SHALL be valid FHIR Encounter resources.Condition resources SHALL be valid FHIR Condition resources.Organization resources SHALL be valid FHIR Organization resources.QuestionnaireResponse resources SHALL be valid FHIR QuestionnaireResponse resources.Where US Core profiles are used, resources SHALL validate against the applicable US Core 6.1.0 profiles.
Most CoBHRM profiles are based on US Core 6.1.0 profiles, and will be checked when testing against the CoBHRM profiles.
The US Core Observation Pregnancy Status profile, and US Core Observation Sexual Orientation profiles are used directly.
The CoBHRM profiles are based on US Core 6.1.0 profiles wherever possible, and the Questionnaire are based on SDC profiles where possible. Resources that claim conformance to a CoBHRM profile SHALL validate against that profile, which will include validation of the dependency profile. See Profiles for details on the CoBHRM profiles:
Implementers SHALL validate required elements, cardinality, fixed values, required identifiers, supported references, and any profile-specific constraints.
Where CoBHRM data is collected through a Questionnaire and submitted as QuestionnaireResponse, implementers SHALL validate the QuestionnaireResponse according to the applicable Questionnaire and SDC expectations. See Questionnaires for details.
Coded elements SHALL use the value sets required by the IG. Implementers SHALL verify that:
See Terminology for details on the required code systems, value sets, and ConceptMaps.
This guidance distinguishes validation from data quality review.
Validation answers: "Is this resource or bundle structurally and terminologically conformant with the IG?"
Examples:
Data quality review answers: "Is the underlying information accurate, complete, and suitable for BHA reporting?"
Examples:
A resource can be technically valid but still contain inaccurate or incomplete real-world information. Implementers should not treat FHIR validation as a substitute for ordinary reporting-data quality controls. Data quality review is not part of the testing against the IG.
Each implementation should test a small set of realistic scenarios before pilot or production use. The scenarios should use semi-realistic data.
The CoBHRM service must be tested with both valid and invalid data to assure that it returns success and failure responses appropriately. When failure is returned, an OperationOutcome resource SHALL be returned that contains details about the failure. The OperationOutcome resource SHALL be used to provide feedback to the submitter about what caused the failure to enable fixing it.
Test that a client can be represented using the BHA Client Profile and any associated QuestionnaireResponse content.
Include at least:
Expected result: the client resource and associated questionnaire data validate against the IG and required terminology.
Test that a new reportable program admission can be represented.
Include at least:
Expected result: the admission scenario validates and the EpisodeOfCare is linked to the correct client and provider organization.
Test that a discharge from a reportable program can be represented.
Include at least:
Expected result: the discharge scenario validates, updates the correct EpisodeOfCare, and uses the required discharge terminology.
Test that diagnosis information can be represented and updated for a reportable episode.
Include at least:
Expected result: the diagnosis information validates and is linked to the correct client and episode.
Test that SUD-specific reporting information can be represented using the BHA Substance Use Disorder Questionnaire and related resources.
Include at least:
Expected result: SUD questionnaire content validates and uses the required CoBHRM terminology.
If the implementation supports Special Connections reporting, test the relevant pregnancy/postpartum and baby-reporting scenarios.
Include at least:
Expected result: Special Connections content validates against the relevant questionnaires and profiles.
Test at least one update to previously reported information and at least one correction to data that was entered incorrectly.
Examples:
Expected result: the implementation can distinguish an ordinary update from a correction according to the implementation's reporting workflow, preserves enough metadata for auditability, and does not create conflicting duplicate records.
Implementers should include negative tests, so as to test that the Server catches these errors. These are intentionally invalid or incomplete examples used to confirm that validation catches errors before submission or at the receiving endpoint.
Minimum negative tests include:
Negative tests SHALL produce clear validation feedback and should not be silently accepted.
The server validation errors SHALL be reported in a way that allows the submitting organization to fix the source data or mapping.
When validation fails, the validating system should return or record an error response that includes:
FHIR OperationOutcome is the format for machine-readable validation feedback.
Technical validation errors are errors that prevent the submitted FHIR content from conforming to the IG.
Examples:
Technical validation errors should be corrected before the data is accepted as conformant CoBHRM FHIR content.
Before production use, a pilot implementation should demonstrate the following:
A pilot does not need to test every possible behavioral-health scenario. It should focus on the reporting events and data elements that the implementation expects to support in the first release.
Each implementation should maintain a small validation package containing:
For BHA review or pilot coordination, this package is more useful than a general claim that an implementation "supports FHIR."
An implementation may describe its CoBHRM FHIR readiness using the following language:
This implementation has been tested against the Colorado BHA FHIR Implementation Guide version [version/commit]. The implementation can produce FHIR R4 resources for the supported CoBHRM reporting scenarios identified in [test plan or appendix]. These resources validate against the applicable CoBHRM profiles, required dependency profiles, and terminology bindings, except for the documented limitations listed in [known limitations].
This document does not define:
Those items should be handled in implementation agreements, pilot protocols, reporting policy, or future versions of the IG.
The IG includes per-patient examples. Implementers can use these examples to test the representation of realistic scenarios and to confirm that the profiles, questionnaires, and terminology in the IG can support the required reporting information.
All example patients are fictional. Any resemblance to real persons, living or dead, is purely coincidental.