Skip to main content

HS.HC.Util.FHIR.DataLoad

deprecated class HS.HC.Util.FHIR.DataLoad

THIS CLASS IS DEPRECATED Use HS.FHIRServer.Tools.DataLoader instead.

Method Inventory

Methods

deprecated classmethod SubmitResourceFiles(pInputDirectory As %String, pFHIRVersion As %String, pServiceName As %String = "", pDisplayProgress As %Boolean = 1, pLogGlobal As %String = "", pFileLimit As %String = "") as %Status
THIS CLASS IS DEPRECATED Use HS.FHIRServer.Tools.DataLoader instead.
API Submit FHIR content files from a specified operating system directory to a FHIR server. Each file may contain an individual resource or a Bundle of resources. The files in the specified directory can be a mix of files with an individual resource and files with a Bundle of resources. The files in the specified directory may be all JSON files or all XML files, or a mix of JSON and XML files.

Input:
- pInputDirectory : (required) Operating system directory location of the source input files.
- pFHIRVersion : (required) FHIR version (DSTU2, STU3) of the input FHIR data.
- pServiceName : Name of Service Registry HTTP service to which to send FHIR request messages. If not specified, then the FHIR request messages will be sent to the FHIR repository business operation in the local production.
- pDisplayProgress : 1 (default) = Display progress messages and errors. 0 = Do not display.
- pLogGlobal : Name of global to which to log statistics. If not specified, then no logging is done. The recorded elapsed time is that time spent while being processed in the relevant FHIR server infrastructure. It does not include time spent by this method in examining and re-formatting of resources or in the construction of request messages.
- pFileLimit : Limit processing to the first pFileLimit files in pInputDirectory. If pFileLimit is not specified, then all files are processed.

Output - if pLogGlobal is specified:
- @pLogGlobal@("FilesTotal") = Number of files processed.
- @pLogGlobal@("ResourcesTotal") = Total number of resources within the processed files.
- @pLogGlobal@("ElapsedTotal") = Total elapsed time between each processing request and response.
- @pLogGlobal@("ElapsedAvgPerFile") = Average elapsed time per file.
- @pLogGlobal@("ElapsedAvgPerResource") = Average elapsed time per resource.
deprecated classmethod SubmitResourceStream(pResourceStream As %Stream.Object, pFHIRVersion As %String, pServiceName As %String = "", pTargetHost As %String = "", Output pSentStreamSize As %Integer, Output pEntryCount As %Integer, Output pElapsed As %Decimal) as %Status
THIS CLASS IS DEPRECATED Use HS.FHIRServer.Tools.DataLoader instead.
API Submit an individual FHIR stream to a FHIR server.

This method returns statistics regarding number of resources processed, plus elapsed time. Please note that the elapsed time statistic is the accumulation of the timing starting from the submission of each FHIR payload to the return of each FHIR payload.

Input:
- pResourceStream : (required) Stream object containing FHIR content. - pFHIRVersion : (required) FHIR version (DSTU2, STU3) of the input FHIR data.
- pServiceName : Name of Service Registry HTTP service to which to send FHIR request messages. If not specified, then the FHIR request messages will be sent to the business host in the local Interoperability production indicated by the pTargetHost input parameter.
- pTargetHost : Name of business host in the local Interoperability production to which to send FHIR request messages.
Output:
- pSentStreamSize : Size, in bytes, of the FHIR stream that was actually sent.
- pEntryCount : Number of resources in pResourceStream.
- pElapsed : Elapsed processing time for the resources within pResourceStream. Elapsed time is that time spent while being processed in the relevant FHIR server infrastructure. It does not include time spent by this method in examining and re-formatting of resources or in the construction of request messages.
deprecated classmethod WriteOutput(pString)
THIS CLASS IS DEPRECATED Use HS.FHIRServer.Tools.DataLoader instead.
Override this method if an alternate means of display output is desired.
FeedbackOpens in a new tab