Goal
Export authored measures as FHIR R4 XML bundles importable into the eCQM Measure Authoring Tool (MAT).
Desired behavior
GET /api/measures/{id}/versions/{versionId}/export/mat?format=xml returns FHIR R4 Bundle containing:
Measure resource with title, description, publisher, status, library reference
Library resource with CQL text as raw bytes (HAPI serializes to base64) and contentType=text/cql
ValueSet resource per linked value set
Files
backend/src/main/java/com/workwell/fhir/MeasureExportService.java (new)
backend/src/main/java/com/workwell/web/AiController.java or MeasureController — endpoint
- Studio export button (ReleaseApprovalTab)
Acceptance criteria
Spec: docs/sprints/SPRINT_07_overdelivery_features.md §7.4
Goal
Export authored measures as FHIR R4 XML bundles importable into the eCQM Measure Authoring Tool (MAT).
Desired behavior
GET /api/measures/{id}/versions/{versionId}/export/mat?format=xmlreturns FHIR R4 Bundle containing:Measureresource with title, description, publisher, status, library referenceLibraryresource with CQL text as raw bytes (HAPI serializes to base64) andcontentType=text/cqlValueSetresource per linked value setFiles
backend/src/main/java/com/workwell/fhir/MeasureExportService.java(new)backend/src/main/java/com/workwell/web/AiController.javaor MeasureController — endpointAcceptance criteria
Content-Type: application/fhir+xmlcontent[0].datacontains CQL as raw bytes (no double base64)Spec: docs/sprints/SPRINT_07_overdelivery_features.md §7.4