Home > Class Reference > HSLIB namespace > HS.AU.HI.Management.Process

HS.AU.HI.Management.Process

persistent class HS.AU.HI.Management.Process extends Ens.BusinessProcess

SQL Table Name: HS_AU_HI_Management.Process

Three types of transactions to handle AddUpdateHubRequest - new / changes to a mrn MergePatientRequest - one mrn merged into another IDUpdateNotification - MPIID is changing for one or more MRN's

Property Inventory

Method Inventory

Parameters

parameter INVOCATION = Queue;
Inherited description: 2 modes: Queue, InProc
parameter SETTINGS = QueryOperation;
Inherited description: List of properties can be set as settings in the configuration file format is a comma separated list of property names

Properties

property CallCount as %Integer [ InitialExpression = 0 ];
Property methods: CallCountDisplayToLogical(), CallCountGet(), CallCountGetStored(), CallCountIsValid(), CallCountLogicalToDisplay(), CallCountNormalize(), CallCountSet()
property MPIID as %String;
Property methods: MPIIDDisplayToLogical(), MPIIDGet(), MPIIDGetStored(), MPIIDIsValid(), MPIIDLogicalToDisplay(), MPIIDLogicalToOdbc(), MPIIDNormalize(), MPIIDSet()
property QueryOperation as Ens.DataType.ConfigName [ InitialExpression = "HS.AU.HI.Consumer.Operations" ];
Property methods: QueryOperationDisplayToLogical(), QueryOperationGet(), QueryOperationGetStored(), QueryOperationIsValid(), QueryOperationLogicalToDisplay(), QueryOperationLogicalToOdbc(), QueryOperationNormalize(), QueryOperationParseConfigNameSpec(), QueryOperationSet()
property RequestData as %String);
Values sent out in the IHI Search request $lb($lb(property,value),$lb(property,value))
Property methods: RequestDataDisplayToLogical(), RequestDataGet(), RequestDataGetStored(), RequestDataIsValid(), RequestDataLogicalToDisplay(), RequestDataLogicalToOdbc(), RequestDataNormalize(), RequestDataSet()
property ValidateItem as HS.AU.HI.Management;
Property methods: ValidateItemGet(), ValidateItemGetObject(), ValidateItemGetObjectId(), ValidateItemGetStored(), ValidateItemGetSwizzled(), ValidateItemIsValid(), ValidateItemNewObject(), ValidateItemSet(), ValidateItemSetObject(), ValidateItemSetObjectId(), ValidateItemUnSwizzle()

Methods

method AddUpdate(pRequest As HS.Message.AddUpdateHubRequest) [ Language = objectscript ]
Transaction Type AddUpdateHubRequest
classmethod BuildHPIRequest(pManagementItem As HS.AU.IHI.Management, Output pHistory="", pRequest As Ens.Request = "") as %Status [ Language = objectscript ]
Validation String Property=value,Property=value ie FamilyName=FOSTER
classmethod BuildIHIRequest(pManagementItem As HS.AU.IHI.Management, pPatient As HS.Registry.Patient, Output pHistory="", pRequest As HS.AU.Message.HI.SearchIHIRequest = "") as %Status [ Language = objectscript ]
Validation String Property=value,Property=value ie Sex=M,DateOfBirth=2000-05-24
classmethod GetPatientAddress(pPatient As HS.Registry.Patient, pRequest As HS.AU.Message.HI.SearchIHIRequest = "", ByRef pHistory) as %Status [ Language = objectscript ]
Locate the patient IHI number from the identifiers collection
classmethod GetPatientIdentifiers(pPatient As HS.Registry.Patient, Output pIdentifiers="") as %Status [ Language = objectscript ]
Locate the patient IHI number from the identifiers collection According to NEHTA, the number is made up as follows: 80036XnnnnnnnnnY 800 is 'Australia', 36 is 'eHealth' X is (0) for individual (IHI) is (1) for provider (HPI-I) is (2) for organisation (HPI-O) nnn is the serial number Y is a check digit
method GetSAMLData(pRequest) [ Language = objectscript ]
method IDUpdate(pRequest As HS.Message.IDUpdateNotificationRequest) [ Language = objectscript ]
If the MPIID is changing, check to see if other MRN's have the same MPIID and if they have a different IHI
method Merge(pRequest As HS.Message.MergePatientRequest) [ Language = objectscript ]
If the MPIID is changing check to see if other MRN's have the same MPIID and if they have a different IHI
method OnComplete(request As Ens.Request, ByRef response As Ens.Response) as %Status [ Language = objectscript ]
Inherited description: Called when all the Async responses are received, or timeout has occurred
method OnError(request As Ens.Request, ByRef response As Ens.Response, callrequest As Ens.Request, pErrorStatus As %Status, pCompletionKey As %String) as %Status [ Language = objectscript ]
Inherited description: This method is called when an error response is received.
Returning the same error will cause the BusinessProcess to set its status to error and close down Returning $$$OK from this method causes the BusinessProcess to recover from this error
For custom coded Business Processes that do not sub class Ens.BusinessProcessBPL it is also possible to use WillHandleErroredResponse() and OnErroredResponse()
method OnRequest(pRequest As Ens.Request, Output pResponse As Ens.Response) as %Status [ Language = objectscript ]
Inherited description: Handle a 'Request'
method OnResponse(pRequest As Ens.Request, ByRef pResponse As Ens.Response, pCallrequest As Ens.Request, pCallresponse As Ens.Response, pCompletionKey As %String) as %Status [ Language = objectscript ]
Inherited description: Handle a 'Response'
classmethod Revalidate(pItem As HS.AU.IHI.Management, pRequestData) as %Boolean [ Language = objectscript ]
Verify whether the record has been verified with the same values in the last 24Hrs
classmethod RevalidateHPI(pItem As HS.AU.IHI.Management, pResponse, pRequestData As %String) as %Boolean [ Language = objectscript ]
Verify whether the record has been verified with the same values in the last 24Hrs
method ValidateHPII(pRequest As HS.AU.Message.HI.SearchIndividualProviderRequest, Output pResponse As HS.AU.Message.HI.SearchIndividualProviderResponse) as %Boolean [ Language = objectscript ]
Verify whether the record has been verified with the same values in the last 24Hrs
method ValidateHPIO(pRequest As HS.AU.Message.HI.SearchOrganisationProviderRequest, Output pResponse As HS.AU.Message.HI.SearchOrganisationProviderResponse) as %Boolean [ Language = objectscript ]
Verify whether the record has been verified with the same values in the last 24Hrs
method ValidateHPIRowResponse(pRequest As Ens.Request, ByRef pResponse As Ens.Response, pCallrequest As Ens.Request, pCallresponse As Ens.Response) as %Status [ Language = objectscript ]
method called once the validation response (Web Service response) received
classmethod ValidateIHI(pNumber As %String) as %Status [ Language = objectscript ]
Calculate the checkdigit for the IHI number
method ValidateMPIID(pMPIID) as %Status [ Language = objectscript ]
Once a record is updated, validate other records with the same MPIID
method ValidateRowRequest(pItem As HS.AU.IHI.Management) as %Status [ Language = objectscript ]
Given patient demographics find the IHI number for the patient
method ValidateRowResponse(pRequest As Ens.Request, ByRef pResponse As Ens.Response, pCallrequest As Ens.Request, pCallresponse As Ens.Response) as %Status [ Language = objectscript ]
method called once the validation response (Web Service response) received

Inherited Members

Inherited Properties

Inherited Methods

Storage

Gray indicates storage defined by superclasses.

Storage Model: Storage (Ens.BusinessProcess)

^Ens.BusinessProcessD(ID,"pending",n)
=
%MasterPendingResponses(n)

Storage Model: Storage (Ens.BusinessProcess)

^Ens.BusinessProcessD(ID,"received",n)
=
%MessagesReceived(n)

Storage Model: Storage (Ens.BusinessProcess)

^Ens.BusinessProcessD(ID,"sent",n)
=
%MessagesSent(n)

Storage Model: Storage (Ens.BusinessProcess)

^Ens.BusinessProcessD(ID)
=
%%CLASSNAME
%ConfigQueueName
%IsCompleted
%MasterPendingResponsesOld
%PrimaryRequestHeader
%PrimaryResponseHeader
%RepliedStatus
%responseId
Adapter
%SessionId
%TimeCompleted
%TimeCreated
%ConfigName
%QuitTask
AlertOnError
%responseClassName
%IsTimerInterrupted
%IsTerminated
%StatusCode
%MessagesReceivedOld
%MessagesSentOld
ReplyCodeActions
RetryInterval
AlertRetryGracePeriod
FailureTimeout
Retry
SuspendMessage
QueueCountAlert
QueueWaitAlert
InactivityTimeout
BusinessPartner
AlertGroups
%SuperSession

Storage Model: Storage (HS.AU.HI.Management.Process)

^Ens.BusinessProcessD(ID,"Process")
=
QueryOperation
RequestData
MPIID
CallCount
ValidateItem
FeedbackOpens in a new window