Skip to content

Sprint 7.4 — MAT-Compatible Measure Export (FHIR R4 Bundle) #50

@Taleef7

Description

@Taleef7

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

  • Endpoint returns Content-Type: application/fhir+xml
  • Bundle contains Library, Measure, ValueSet resources
  • Library content[0].data contains CQL as raw bytes (no double base64)
  • Validates as FHIR R4 Bundle (HAPI validator)
  • Export button visible to APPROVER/ADMIN in Studio

Spec: docs/sprints/SPRINT_07_overdelivery_features.md §7.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendenhancementNew feature or requestsprint-7Sprint 7 overdelivery features

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions