Class FHIRLibraryLibrarySourceProvider

  • All Implemented Interfaces:
    org.cqframework.cql.cql2elm.LibrarySourceProvider

    public class FHIRLibraryLibrarySourceProvider
    extends java.lang.Object
    implements org.cqframework.cql.cql2elm.LibrarySourceProvider
    Implement a LibrarySourceProvider for the CQL to ELM translator that can extract the CQL sources from a collection of preloaded FHIR Library resources.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​Library>> indexByName  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.InputStream getLibrarySource​(org.hl7.elm.r1.VersionedIdentifier libraryIdentifier)  
      • Methods inherited from class java.lang.Object

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

      • indexByName

        java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​Library>> indexByName
    • Constructor Detail

      • FHIRLibraryLibrarySourceProvider

        public FHIRLibraryLibrarySourceProvider​(java.util.List<Library> fhirLibraries)
    • Method Detail

      • getLibrarySource

        public java.io.InputStream getLibrarySource​(org.hl7.elm.r1.VersionedIdentifier libraryIdentifier)
        Specified by:
        getLibrarySource in interface org.cqframework.cql.cql2elm.LibrarySourceProvider