Class Main


  • public final class Main
    extends Object
    Processes the resource from one of the entry points, into an in memory resource a FHIR Path is executed over it, and the output is put out to the screen. The types of entry points are:
    • a file
    • a string (raw command line arg); or
    • stdin (so we can pipe to it)
    • Method Detail

      • determineTypeAndSetProperties

        protected void determineTypeAndSetProperties​(String[] argsInc)
        processes the command line parameters into objects.
        Parameters:
        argsInc -
      • shouldPrintError

        public Boolean shouldPrintError()
        print the error message.
        Returns:
      • verifyResource

        public void verifyResource()
        verifies we have a fhir resource
      • processFhirPath

        protected void processFhirPath()
        process the fhir path and output the nodes
      • header

        public void header​(String fhirPath,
                           int count)
        output the header
        Parameters:
        fhirPath -
        count -
      • footer

        public void footer()
        print the footer.
      • help

        public void help()
        print the help information.
      • main

        public static void main​(String[] args)
        executes a fhir path expression over a given resource.
        Parameters:
        args -