HS.AU.PCEHR.Headers
class HS.AU.PCEHR.Headers extends %Library.RegisteredObject
HS.AU.PCEHR.Headers supports adding, signing and validating headers that are defined as part of Australia Government's Department of Health and Ageing (Federal Agency) NEHTA standards for the PCEHR B2B Gateway services. Standards for the PCEHR Core System are accessible here: https://vendors.nehta.gov.auSee AddRequestHeaders and AddResponseHeaders for details of how to add and sign headers.
See ValidateHeaders for details of how to validate headers.
Property Inventory
Method Inventory
Parameters
parameter ELEMENTQUALIFIED = 1;
parameter NAMESPACE = http://ns.electronichealth.net.au/pcehr/xsd/common/CommonCoreElements/1.0;
parameter XMLFORMAT = literal;
parameter XMLNAME = PCEHRHeader;
parameter XMLSEQUENCE = 1;
Properties
property Header as HS.AU.PCEHR.HeaderType (XMLNAME = "PCEHRHeader") [ Required ];
Property methods: HeaderGet(), HeaderGetSwizzled(), HeaderIsValid(), HeaderNewObject(), HeaderSet()
property signature as HS.AU.PCEHR.SignatureContainerType;
signature SOAP header will be created for request and response and will sign other headers.
signature SOAP header will reference header after validating received request or response.
Property methods: signatureGet(), signatureGetSwizzled(), signatureIsValid(), signatureNewObject(), signatureSet()
property timestamp as HS.AU.PCEHR.TimestampType;
timestamp SOAP header will be created request.
timestamp SOAP header will reference header after validating received request.
Property methods: timestampGet(), timestampGetSwizzled(), timestampIsValid(), timestampNewObject(), timestampSet()
Methods
method AddRequestHeaders(service As %SOAP.WebBase, credentials As %SYS.X509Credentials, interval As %Integer)
Add request headers.
- SOAP addressing headers will be created and added.
- product header will be as supplied by caller by setting product property.
- user header will be as supplied by caller by setting product property.
- timestamp and signature headers will be created by this method.
- The service argument is required and is the web client or service for which to add the headers.
- The credentials argument is the X.509 credentials object used for signing. See %SYS.X509Credentials class documentation for details.
- The optional interval argument is used to create the timestamp header, if the optional expires field is desired.
method AddResponseHeaders(service As %SOAP.WebBase, credentials As %SYS.X509Credentials)
Add response headers.
- SOAP addressing headers will be created and added.
- product header will be as supplied by caller by setting product property.
- signature header will be created by this method.
- The service argument is required and is the web client or service for which to add the headers.
- The credentials argument is the X.509 credentials object used for signing. See %SYS.X509Credentials class documentation for details.
method ValidateHeaders(service As %SOAP.WebBase) as %Status
Validate the signature and other Header required headers.
If called from a web service, a fault is issued in case of error and this method does not return.
If called from a web client, a %Status is returned in case of error.
In order to valdate the headers the web service or client must be told to import the headers.
Web service needs request headers defined in SOAPHEADERS parameter
Parameter SOAPHEADERS = "signature:HS.AU.PCEHR.SignatureContainerType,User:HS.AU.PCEHR.UserType,IHINumber:HS.AU.PCEHR.IHINumber,ProductType:HS.AU.PCEHR.ProductType,ClientSystemType:HS.AU.PCEHR.ClientsystemType,AccessingOrganisation:HS.AU.PCEHR.AccessingOrganisation,timestamp:HS.AU.PCEHR.TimestampType"
Web client needs response headers defined in SOAPHEADERS parameter
Parameter SOAPHEADERS = "signature:HS.AU.PCEHR.SignatureContainerType"
If called from a web service, a fault is issued in case of error and this method does not return.
If called from a web client, a %Status is returned in case of error.
In order to valdate the headers the web service or client must be told to import the headers.
Web service needs request headers defined in SOAPHEADERS parameter
Parameter SOAPHEADERS = "signature:HS.AU.PCEHR.SignatureContainerType,User:HS.AU.PCEHR.UserType,IHINumber:HS.AU.PCEHR.IHINumber,ProductType:HS.AU.PCEHR.ProductType,ClientSystemType:HS.AU.PCEHR.ClientsystemType,AccessingOrganisation:HS.AU.PCEHR.AccessingOrganisation,timestamp:HS.AU.PCEHR.TimestampType"
Web client needs response headers defined in SOAPHEADERS parameter
Parameter SOAPHEADERS = "signature:HS.AU.PCEHR.SignatureContainerType"
Inherited Members
Inherited Methods
- %AddToSaveSet()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Extends()
- %GetParameter()
- %IsA()
- %IsModified()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OriginalNamespace()
- %PackageName()
- %RemoveFromSaveSet()
- %SerializeObject()
- %SetModified()
- %ValidateObject()