public interface MtkProductionLoadService
Modifier and Type | Method and Description |
---|---|
String |
createCompositeMessageSchema(InteractionDetail interactionDetail)
Creates Composite Message Schema for the given Interaction detail.
|
void |
deleteInteractionSchema(String interactionId)
This API will delete the Interaction Schema from the file system.
|
void |
deleteSchemas(String[] schemas)
The only purpose of this API is to clean up orphaned CMETs or unused
Payloads created by the user.
|
SchemaInformation[] |
fetchCompositeMessageShemasByPayload(String payloadId)
Fetches all the Composite Message Schemas that refer to the given Payload
Id.
|
SchemaInformation[] |
fetchCustomCMETsForPayload(String payloadId)
Fetches all the CMETs created by user that are referred by the given
Payload Id.
|
SchemaInformation[] |
fetchSchemas(String[] schemaName)
Returns the Schema and corresponding MIF contents, matching the given
schema names.
|
void |
loadCustomMessageTypeToProductionServer(SchemaInformation[] schemaInformation)
This API allows the user to load tested Message Types into the server.
|
void |
loadSchemas(SchemaInformation[] schemaInformation)
Loads the schemas into server, updates Artifacts Registry and updates
Metadata associated with the schemas.
|
void loadCustomMessageTypeToProductionServer(SchemaInformation[] schemaInformation) throws HDRRimException
This API allows the user to load tested Message Types into the server. It
is expected that artifacts associated with Message Type are properly
tested in using testCustomMessageType() API of
MtkTestService
. Only Custom Message
Type can be uploaded using this API and Oracle artifacts can not be
uploaded.
When invoking this API, the following artifacts associated with the Message Type must be passed.
The API does the following tasks:
Following core mif validation rules are applied when loading the Custom Message Type into production server:
schemaInformation
- Payload XSD and MIF, all the CMET XSDs and MIFs
associated with the Payload, updated cmetinfo.coremifHDRRimException
- This exception is thrown, if
oracle.hsgbu.hdr.hl7.message.mtk.SchemaInformation
list.oracle.hsgbu.hdr.hl7.message.mtk.SchemaInformation
list.oracle.hsgbu.hdr.hl7.message.mtk.SchemaInformation
list, when at least
one CMET is present in the list.String createCompositeMessageSchema(InteractionDetail interactionDetail) throws HDRRimException
If the Interaction detail can be configured successfully, then it creates a new Composite Message Schema based on the given Interaction Id. Using this API, user can create Composite Schema for a custom Payload and as well as for an Oracle Payload.
The Composite Message schema is loaded into memory, validated and Metadata for the newly created Composite Message Schema is loaded. In case of any failure in loading the data or creating Composite Message schema, HDRRimException is thrown. In this case, the database updates are rolled back, and the Composite Message Schema is not created.
interactionDetail
- oracle.hsgbu.hdr.hl7.message.mtk.InteractionDetail
should contain the
following data.
HDRRimException
- This exception is thrown if,
SchemaInformation[] fetchCompositeMessageShemasByPayload(String payloadId) throws HDRRimException
payloadId
- Payload Id e.g. PRPA_MT04000HT02. The API does an exact
match for the Payload Id. There is no support for partial match.oracle.hsgbu.hdr.hl7.message.mtk.SchemaInformation
List of
Composite Message Schema XSDs.HDRRimException
- This exception is thrown if
SchemaInformation[] fetchCustomCMETsForPayload(String payloadId) throws HDRRimException
payloadId
- Payload Id e.g. PRPA_MT04000HT02. It does an exact
match. There is no support for partial match.oracle.hsgbu.hdr.hl7.message.mtk.SchemaInformation
list of
CMET XSD and corresponding MIF.HDRRimException
- This exception is thrown if,
SchemaInformation[] fetchSchemas(String[] schemaName) throws HDRRimException
schemaName
- partial or complete schema names.oracle.hsgbu.hdr.hl7.message.mtk.SchemaInformation
list of XSD
and MIF for the schema(s).HDRRimException
void deleteSchemas(String[] schemas) throws HDRRimException
If the given Payload schema is referred by any Interaction Schema, then no schema is deleted. If the given CMET is referred by any Payload, then no schema is deleted. Also, if Sender or Receiver details are already configured for any Interaction schema referring to the given Payload, then exception is thrown, and no schema is deleted.
Following actions are carried out while deleting a CMET:
Following actions are carried out while deleting a Payload:
schemas
- The exact name of the XSD of the artifacts. More than one
artifact names can be passed. The schema names should be strictly
complete names. No partial matching is supported.HDRRimException
- This exception is thrown if
void loadSchemas(SchemaInformation[] schemaInformation) throws HDRRimException
oracle.hsgbu.hdr.hl7.message.mtk.SchemaInformation
list will be
validated before uploading. Artifact entries for the uploading schemas
will be created.
The loadCustomMessageTypeToProductionServer()
API is used to
load all the necessary artifacts associated with a Message Type. But, the
loadSchema()
API is used to load a particular CMET or
cmetinfo.coremif. The loadSchema()
API can not be used to
load Payload. This API also loads the Metadata for the CMETs.
Following core mif validation rules are applied when loading the Custom
Message Type into production server:
schemaInformation
- oracle.hsgbu.hdr.hl7.message.mtk.SchemaInformation
list of XSD and
MIFs for CMETs, or cmetinfo.coremifHDRRimException
- This exception is thrown if
oracle.hsgbu.hdr.hl7.message.mtk.SchemaInformation
object has
insufficient information.void deleteInteractionSchema(String interactionId) throws HDRRimException
interactionId
- Exact Interaction Id, matching the Interaction
Schema.HDRRimException
- This exception is thrown if,
HDR Glossary HDR Concept Lists HDR Exceptions HDR Programmer's Guide HDR Implementation Guide HDR Profile Options
Copyright © 2016, 2018, Oracle. All rights reserved