Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MeasureHelper

        public MeasureHelper()
    • 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