Skip to main content

Orders Service — Service Readiness

Status: populated Owner: TBD Last updated: 2026-04-18 Companion: Service Template · DEFINITION_OF_DONE · SERVICE_RISK_REGISTER

1. Purpose

This checklist defines the gates that must be satisfied before the orders-service is promoted to production. The service is patient-safety-critical and requires elevated readiness scrutiny.

Sign-off required from: Tech Lead + SRE + Clinical Safety Officer


2. Documentation Gates

GateStatusOwnerNotes
All 17 canonical docs populated (not stubs)In ProgressTech LeadSERVICE_OVERVIEW, DOMAIN_MODEL, APPLICATION_LOGIC, API_CONTRACTS, DATA_MODEL, SECURITY_MODEL, OBSERVABILITY, EVENT_SCHEMAS, TESTING_STRATEGY, SYNC_CONTRACT, AI_INTEGRATION complete; 6 stubs now resolved
EPICS.md and USER_STORIES.md presentNot startedProduct Owner
MIGRATION_PLAN.md approved by clinical informaticsNot startedClinical Informatics

3. Code and Quality Gates

GateRequired thresholdNotes
Unit test coverage — overall≥ 80% line / branchpnpm test:cov
Unit test coverage — domain layer (CDS guard, state machine)≥ 90%Safety-critical paths
Unit test coverage — aggregates≥ 95% per DEFINITION_OF_DONE
All unit tests green0 failures
All integration tests green0 failures
tenant-isolation.spec.ts passingMUST passBlocking gate
outbox.spec.ts passingMUST passBlocking gate
cds-guard.integration.spec.ts passingMUST passPatient-safety gate
Contract tests green (Pact broker)0 failuresVerify against all consumers
Event schema conformance green0 failuresSchema registry validation
Linting + typecheck clean0 errorsCI enforced
No CRITICAL or HIGH findings from security-reviewerMUST be cleanBefore prod
OpenAPI diff gate — no breaking changes without version bump0 violationsCI enforced

4. Security Gates

GateStatusNotes
RLS policies verified by integration testsNot startedtenant-isolation.spec.ts
Keycloak RBAC matrix tested for all rolesNot startedCLINICIAN, PRESCRIBER, NURSE, PHARMACIST, PATIENT, ADMIN
CDS override audit log immutability verifiedNot started7-year retention policy
Dual-sign for controlled substances implemented and testedNot started
No hardcoded secrets in codebaseNot startedsecurity-reviewer gate
MODULE_NOT_ENTITLED enforced for unlicensed tenantsNot started
PII masking in logs verified (orderedBy, clinicalSummary)Not started
Secrets injected via Vault (not ConfigMap)Not startedSRE review

5. Observability Gates

GateStatusNotes
OpenTelemetry spans verified in staging (Grafana/Jaeger)Not startedAll spans from OBSERVABILITY.md Section 2
Prometheus metrics confirmed scrapingNot startedAll metrics from OBSERVABILITY.md Section 3
Dashboards deployed and reviewed by SRENot startedOrders Overview, CDS Activity, Referral Tracking, Service Health
All alerts configured with runbooksNot started5 alerts from OBSERVABILITY.md Section 6
SLOs declared in Grafana SLO moduleNot started6 SLOs from OBSERVABILITY.md Section 1
Health endpoints verified in stagingNot started/health/live, /health/ready, /health/startup

6. Deployment and Ops Gates

GateStatusNotes
Helm chart reviewed and mergedNot startedSRE
Terraform module for DB and secretsNot startedSRE
PodDisruptionBudget configured (minAvailable: 2)Not startedSRE
HPA configured (min 3, max 8 for prod)Not startedSRE
Canary deploy completed in staging — 5% / 30 min — rollback verifiedNot startedSRE
Rolling update strategy verified (zero downtime)Not startedSRE
Database migrations run as pre-deploy Job (not inline)Not started
On-call rotation assignedNot startedEngineering Manager

7. Migration Gates (if migrating from legacy CPOE)

GateStatusNotes
Historical data migration count validated (0 discrepancy)Not startedMigration engineer
10% sample of active orders validated by clinical teamNot startedClinical informatics
FHIR ID redirect table populated and testedNot startedinterop-service team
Legacy service replicas set to 0 (post-cutover)Not startedSRE
Rollback plan documented and rehearsedNot startedSRE

8. Clinical Safety Gates

GateStatusNotes
CDS hard-stop ADMIN override path tested end-to-endNot startedClinical Safety Officer
Allergy cache staleness scenario documented and mitigatedNot startedClinical Safety Officer
CDS degraded mode behavior documented, tested, accepted by clinical teamNot startedClinical informatics
Duplicate order prevention validated with clinical scenariosNot startedClinical informatics
Controlled substance dual-sign workflow validatedNot startedClinical Safety Officer

9. Sign-Off

RoleNameDateSignature
Tech LeadTBD
SRETBD
Clinical Safety OfficerTBD

The service MUST NOT be promoted to production until all gates in Sections 3–8 are marked complete and all three sign-offs are recorded above.