Data Integration
- Data Integration
- All Products
/h2h/api/v1/service/run/<hierarchical mapper ID>
Field | Type | Description |
---|---|---|
agentGroupId | String | Runtime environment to run the hierarchical mapper. If you don't specify a runtime environment, the hierarchical
mapper runs natively on the Cloud Server. |
input
| Input details. | |
type | String | Type of input to send in the request body. Use
buffer or file. |
value | String | Input value to pass to the hierarchical mapper. If
the input is a buffer, enter the XML or JSON data. If the input is a
file, enter the path to the file. |
output
| Output details. | |
type | String | Type of output to receive in the response. Use
buffer or file. |
value | String | Output to receive in the response. If the output
is a buffer, use an empty string. If the output is a file, enter the
path to the file. |
Field | Type | Description |
---|---|---|
output | String | Output value. The output is either a buffer or the
path to a file. |
message | String | Response message, such as
Success . |
POST <server URL>/h2h/api/v1/service/run/<hierarchical mapper ID> Content-Type: application/json Accept: application/json IDS-SESSION-ID: jpaybAKQMsmdt7vLJ02z0 { "agentGroupId": "016GOR25000000000005", "input": { "type": "buffer", "value":"<?xml version=\"1.0\" encoding=\"UTF-8\"?><HL7:MSH><MSH.1>1</MSH.1><MSH.2>^~\\&</MSH.2><MSH.3><HD.1>GHH_ADT</HD.1></MSH.3><MSH.7>20080115153000</MSH.7><MSH.9><MSG.1>ADT</MSG.1><MSG.2>A01</MSG.2><MSG.3>ADT_A01</MSG.3></MSH.9><MSH.10>0123456789</MSH.10><MSH.11><PT.1>P</PT.1></MSH.11><MSH.12><VID.1>2.6</VID.1></MSH.12><MSH.16>AL</MSH.16></HL7:MSH>" }, "output": { "type": "file", "value": "/root/idsm" } }
{ "output": "/root/idsm/hmapper_runtime_api_5040_output.xml", "message": "Success" }
POST <server URL>/h2h/api/v1/service/run/<hierarchical mapper ID> Content-Type: application/json Accept: application/json IDS-SESSION-ID: jpaybAKQMsmdt7vLJ02z0 { "agentGroupId": "016GOR25000000000005", "input": { "type": "file", "value":"/root/idsm/2.6_parser_response.xml" }, "output": { "type": "buffer", "value": " " } }
{ "output": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<Departments>\r\n<Department name=\"\">\r\n<Employee>\r\n<Profile>\r\n<Id>0</Id>\r\n<FullName>1</FullName>\r\n<Skills>\r\n<FHIR4></FHIR4>\r\n<XYZ></XYZ>\r\n<hl7></hl7>\r\n<HIPAA></HIPAA>\r\n</Skills>\r\n</Profile>\r\n</Employee>\r\n</Department>\r\n</Departments>\r\n", "message": "Success" }