Package org.linuxforhealth.fhir.ecqm.r4
Class MeasureHelper
- java.lang.Object
-
- org.linuxforhealth.fhir.ecqm.r4.MeasureHelper
-
public class MeasureHelper extends java.lang.Object
Utility methods for working with Measure resources
-
-
Constructor Summary
Constructors Constructor Description MeasureHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getPrimaryLibraryId(Measure measure)
Retrieve the primary library ID from a FHIR measure resource.
-
-
-
Method Detail
-
getPrimaryLibraryId
public static java.lang.String getPrimaryLibraryId(Measure measure) throws FHIROperationException
Retrieve the primary library ID from a FHIR measure resource. The baseline validation will not catch cases when no reference is provided and we enforce here the rule from the CQF measures IG where exactly one library reference is expected.- Parameters:
measure
- Measure resource- Returns:
- primary library ID
- Throws:
FHIROperationException
- when there are more or less than one library references in the resource
-
-