department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
283 stars 204 forks source link

CES-609 CES: Add rule checks for Vista specific rules #86263

Closed BrittanySFowler closed 4 months ago

BrittanySFowler commented 4 months ago

CES-609: https://issues.mobilehealth.va.gov/browse/CES-609 I want incoming requests to run different sets of rules based on the EHR they are targeting.

Investigate using a factory for this, passing in the FhirServiceClient may be a good way to reuse code

Rules pertaining to VISTA are use the EHRSource.VISTA enum and check for it before firing. If the ehrSource value is not set in the EnrichedRequestAccessUnit, deny the request with a 500 If the ehrSource value is not set in the PreEnrichmentRequestAccessUnit for Appointment Create requests, deny the request with a 500 Tests continue to work