Oracle® Healthcare Master Person Index Relationship Management REST APIs Reference Guide Release 4.0 E71322-01 |
|
|
PDF · Mobi · ePub |
The management resources contain the following APIs:
This API is used to get management REST API versioning information.
http(s)://<server>:<port>/ohmpi-rm/1.0.0/management
HTTP GET
application/json;charset=UTF-8
Parameter | Description |
---|---|
version | The OHMPI RM version number |
description | The description of management resources |
url | The URL of this REST API |
Status Code | Description |
---|---|
200 | Success |
404 | Incorrect URI |
http://localhost:7001/ohmpi-rm/1.0.0/management
{ "version": "1.0.0", "description": "OHMPI RM Management Resources", "url": "http://localhost:7001/ohmpi-rm/1.0.0/management" }
200
This API is used to retrieve the list of domains.
http(s)://<server>:<port>/ohmpi-rm/1.0.0/management/domains
HTTP GET
application/json;charset=UTF-8
Parameter | Value | Description |
---|---|---|
expand | all, objectxml, or fields | View more details of the domain. The objectxml value displays the complete objectxml file, the fields value displays the fields present in the objectxml file, and the all value displays the complete objectxml file and the fields. |
totalResults | true or false | View total records count |
Parameter | Description |
---|---|
items | An array containing domains |
domain | For information on the domain attributes in response, see Section A.2.3, "Domain Response Structure". |
totalResults | Value is set to the total number of domains based on the status filter. The value is displayed if totalResults is set to true in the request parameter. Otherwise, the value is null. |
Status Code | Description |
---|---|
200 | Success |
404 | Incorrect URI |
400 | Invalid argument |
500 | Error while processing |
http://localhost:7001/ohmpi-rm/1.0.0/management/domains?totalResults=true
{ "items": [ { "domainId": 2, "fields": "{canonicalLink: /ohmpi-rm/1.0.0/management/domains/IndProvider?expand=fields}", "jndiname": "ejb/IndProviderMasterController", "links": [ { "href": "/ohmpi-rm/1.0.0/management/domains/IndProvider", "mediaType": "application/json", "rel": "canonical" } ], "name": "IndProvider", "objectXml": "{canonicalLink: /ohmpi-rm/1.0.0/management/domains/IndProvider?expand=objectxml}", "url": "t3://localhost:7001", "usercode": "********", "userid": "mpiAdmin" } ], "links": [ { "href": "/ohmpi-rm/1.0.0/management/domains", "mediaType": "application/json", "rel": "canonical" } ], "totalResults": 1 }
200
This API is used to retrieve the details of an existing domain.
http(s)://<server>:<port>/ohmpi-rm/1.0.0/management/domains/{domain}
HTTP GET
application/json;charset=UTF-8
Parameter | Value | Description |
---|---|---|
domain | Matching the regex [a-zA-Z][a-zA-Z_0-9]+ | Domain Name of the domain to be searched |
expand | all, objectxml, or fields | View more details of the domain. The objectxml value displays the complete objectxml file, the fields value displays the fields present in the objectxml file, and the all value displays the complete objectxml file and the fields. |
Parameter | Description |
---|---|
domain | For information on the domain attributes in response, see Section A.2.3, "Domain Response Structure". |
Status Code | Description |
---|---|
200 | Success |
404 | Incorrect URI |
400 | Invalid argument/Resource Not Exists |
500 | Error while processing |
http://localhost:7001/ohmpi-rm/1.0.0/management/domains/IndProvider
{ "domainId": 2, "fields": "{canonicalLink: /ohmpi-rm/1.0.0/management/domains/IndProvider?expand=fields}", "jndiname": "ejb/IndProviderMasterController", "links": [ { "href": "/ohmpi-rm/1.0.0/management/domains/IndProvider", "mediaType": "application/json", "rel": "canonical" } ], "name": "IndProvider", "objectXml": "{canonicalLink: /ohmpi-rm/1.0.0/management/domains/IndProvider?expand=objectxml}", "url": "t3://localhost:7001", "usercode": "********", "userid": "mpiAdmin" }
200
This API is used to register a new domain.
http(s)://<server>:<port>/ohmpi-rm/1.0.0/management/domains/{domain}
application/json
HTTP POST
application/json;charset=UTF-8
Parameter | Value | Description |
---|---|---|
domain | Matching the regex [a-zA-Z][a-zA-Z_0-9]+ | Domain Name of the domain to be registered |
domainResource | - | Details of the domain to be registered. For details on the fields for the domain request body, see Section A.1.3, "Domain Resource". |
Parameter | Description |
---|---|
domain | For information on the domain attributes in response, see Section A.2.3, "Domain Response Structure". To display all the attributes of the domain, use the GET /management/domains/{domain} API with expand=all. |
Status Code | Description |
---|---|
200 | Success |
404 | Incorrect URI |
400 | Invalid argument/Resource Exists |
500 | Error while processing |
http://localhost:7001/ohmpi-rm/1.0.0/management/domains/IndProvider
{ "name": "IndProvider", "jndiname": "ejb/IndProviderMasterController ", "usercode": "d2VsY29tZTE=", "url": "t3://localhost:7001", "userid": "mpiAdmin" }
{ "domainId": 2, "fields": "{canonicalLink: /ohmpi-rm/1.0.0/management/domains/IndProvider?expand=fields}", "jndiname": "ejb/IndProviderMasterController", "links": [ { "href": "/ohmpi-rm/1.0.0/management/domains/IndProvider", "mediaType": "application/json", "rel": "canonical" } ], "name": "IndProvider", "objectXml": "{canonicalLink: /ohmpi-rm/1.0.0/management/domains/IndProvider?expand=objectxml}", "url": "t3://localhost:7001", "usercode": "********", "userid": "mpiAdmin" }
200
This API is used to update an existing domain.
http(s)://<server>:<port>/ohmpi-rm/1.0.0/management/domains/{domain}
application/json
HTTP PUT
application/json;charset=UTF-8
Parameter | Value | Description |
---|---|---|
domain | Matching the regex [a-zA-Z][a-zA-Z_0-9]+ | Domain Name of the domain to be updated |
domainResource | - | Details of the domain to be updated. For details on the fields for the domain request body, see Section A.1.3, "Domain Resource". |
Parameter | Description |
---|---|
domain | For information on the domain attributes in response, see Section A.2.3, "Domain Response Structure". To display all the attributes of the domain, use the GET /management/domains/{domain} API with expand=all. |
Status Code | Description |
---|---|
200 | Success |
404 | Incorrect URI |
400 | Invalid argument/Resource Not Exists |
500 | Error while processing |
http://localhost:7001/ohmpi-rm/1.0.0/management/domains/IndProvider
{ "name": "IndProvider", "jndiname": "ejb/IndProviderMasterController ", "usercode": "d2VsY29tZTE=", "url": "t3://localhost:7011", "userid": "mpiAdminNew" }
{ "domainId": 2, "fields": "{canonicalLink: /ohmpi-rm/1.0.0/management/domains/IndProvider?expand=fields}", "jndiname": "ejb/IndProviderMasterController", "links": [ { "href": "/ohmpi-rm/1.0.0/management/domains/IndProvider", "mediaType": "application/json", "rel": "canonical" } ], "name": "IndProvider", "objectXml": "{canonicalLink: /ohmpi-rm/1.0.0/management/domains/IndProvider?expand=objectxml}", "url": "t3://localhost:7011", "usercode": "********", "userid": "mpiAdminNew" }
200
This API is used to upload object definition xml file for a domain.
http(s)://<server>:<port>/ohmpi-rm/1.0.0/management/domains/{domain}/files
multipart/form-data
HTTP PUT
application/json;charset=UTF-8
Parameter | Description |
---|---|
domain | Domain Name of the domain whose object.xml file needs to be uploaded |
objectFile | The XML file to be uploaded |
contentDisposition | MIME content-disposition header which contains name of the uploaded file. |
Parameter | Description |
---|---|
domain | For information on the domain attributes in response, see Section A.2.3, "Domain Response Structure". To display all the attributes of the domain, use the GET /management/domains/{domain} API with expand=all. |
Status Code | Description |
---|---|
200 | Success |
404 | Incorrect URI |
400 | Invalid argument/Resource Not Exists |
500 | Error while processing |
http://localhost:7001/ohmpi-rm/1.0.0/management/domains/IndProvider/files
{ "domainId": 2, "fields": "{canonicalLink: /ohmpi-rm/1.0.0/management/domains/IndProvider?expand=fields}", "jndiname": "ejb/IndProviderMasterController", "links": [ { "href": "/ohmpi-rm/1.0.0/management/domains/IndProvider", "mediaType": "application/json", "rel": "canonical" } ], "name": "IndProvider", "objectXml": "{canonicalLink: /ohmpi-rm/1.0.0/management/domains/IndProvider?expand=objectxml}", "url": "t3://localhost:7011", "usercode": "********", "userid": "mpiAdminNew" }
200
This API is used to retrieve the list of rulesets.
http(s)://<server>:<port>/ohmpi-rm/1.0.0/management/rulesets
HTTP GET
application/json;charset=UTF-8
Parameter | Value | Description |
---|---|---|
expand | all or rulexml | View more details of the ruleset. The all or rulexml value displays the complete xml file of the ruleset. |
totalResults | true or false | View total records count |
Parameter | Description |
---|---|
items | An array containing rulesets |
ruleset | For information on the ruleset attributes in response, see Section A.2.4, "Ruleset Response Structure". |
totalResults | Value is set to the total number of rulesets based on the status filter. The value is displayed if totalResults is set to true in the request parameter. Otherwise, the value is null. |
Status Code | Description |
---|---|
200 | Success |
404 | Incorrect URI |
400 | Invalid argument |
500 | Error while processing |
http://localhost:7001/ohmpi-rm/1.0.0/management/rulesets?totalResults=true
{ "items": [ { "createdBy": "rmAdmin", "createdDate": "01/08/2016", "description": "Relationship ruleset between Patient and IndProvider", "links": [ { "href": "/ohmpi-rm/1.0.0/management/rulesets/CreateRelationshipRuleset", "mediaType": "application/json", "rel": "canonical" } ], "modifiedBy": "rmAdmin", "modifiedDate": "01/08/2016", "name": "CreateRelationshipRuleset", "rulesetId": 1, "ruleXml": "{canonicalLink: /ohmpi-rm/1.0.0/management/rulesets/CreateRelationshipRuleset?expand=ruleXml}", "source": "Patient", "status": "Active", "target": "IndProvider" } ], "links": [ { "href": "/ohmpi-rm/1.0.0/management/rulesets", "mediaType": "application/json", "rel": "canonical" } ], "totalResults": 1 }
200
This API is used to retrieve the details of an existing ruleset.
http(s)://<server>:<port>/ohmpi-rm/1.0.0/management/rulesets/{ruleset}
HTTP GET
application/json;charset=UTF-8
Parameter | Value | Description |
---|---|---|
ruleset | Matching the regex [a-zA-Z][a-zA-Z_0-9]+ | Ruleset Name of the ruleset to be searched |
expand | all or rulexml | View more details of the ruleset. The all or rulexml value displays the complete xml file of the ruleset. |
Parameter | Description |
---|---|
domain | For information on the ruleset attributes in response, see Section A.2.4, "Ruleset Response Structure". |
Status Code | Description |
---|---|
200 | Success |
404 | Incorrect URI |
400 | Invalid argument/Resource Not Exists |
500 | Error while processing |
http://localhost:7001/ohmpi-rm/1.0.0/management/rulesets/CreateRelationshipRuleset
{ "createdBy": "rmAdmin", "createdDate": "01/08/2016", "description": "Relationship ruleset between Patient and IndProvider", "links": [ { "href": "/ohmpi-rm/1.0.0/management/rulesets/CreateRelationshipRuleset", "mediaType": "application/json", "rel": "canonical" } ], "modifiedBy": "rmAdmin", "modifiedDate": "01/08/2016", "name": "CreateRelationshipRuleset", "rulesetId": 1, "ruleXml": "{canonicalLink: /ohmpi-rm/1.0.0/management/rulesets/CreateRelationshipRuleset?expand=ruleXml}", "source": "Patient", "status": "Active", "target": "IndProvider" }
200
This API is used to register a new ruleset.
http(s)://<server>:<port>/ohmpi-rm/1.0.0/management/rulesets/{ruleset}
application/json
HTTP POST
application/json;charset=UTF-8
Parameter | Value | Description |
---|---|---|
ruleset | Matching the regex [a-zA-Z][a-zA-Z_0-9]+ | Ruleset Name of the ruleset to be registered |
rmRuleSetResource | - | Details of the ruleset to be registered. For details on the fields for the ruleset request body, see Section A.1.4, "RmRuleset Resource". |
Parameter | Description |
---|---|
ruleset | For information on the ruleset attributes in response, see Section A.2.4, "Ruleset Response Structure". To display all the attributes of the domain, use the GET /management/rulesets/{ruleset} API with expand=all. |
Status Code | Description |
---|---|
200 | Success |
404 | Incorrect URI |
400 | Invalid argument/Resource Exists |
500 | Error while processing |
http://localhost:7001/ohmpi-rm/1.0.0/management/rulesets/CreateRelationshipRuleset
{ "name": "CreateRelationshipRuleset", "description": "Relationship ruleset between Patient and IndProvider", "source": "Patient", "target": "IndProvider", "status": "Active" }
{ "createdBy": "rmAdmin", "createdDate": "01/08/2016", "description": "Relationship ruleset between Patient and IndProvider", "links": [ { "href": "/ohmpi-rm/1.0.0/management/rulesets/CreateRelationshipRuleset", "mediaType": "application/json", "rel": "canonical" } ], "modifiedBy": "rmAdmin", "modifiedDate": "01/08/2016", "name": "CreateRelationshipRuleset", "rulesetId": 1, "ruleXml": "{canonicalLink: /ohmpi-rm/1.0.0/management/rulesets/CreateRelationshipRuleset?expand=ruleXml}", "source": "Patient", "status": "Active", "target": "IndProvider" }
200
This API is used to update an existing ruleset.
http(s)://<server>:<port>/ohmpi-rm/1.0.0/management/rulesets/{ruleset}
application/json
HTTP PUT
application/json;charset=UTF-8
Parameter | Value | Description |
---|---|---|
ruleset | Matching the regex [a-zA-Z][a-zA-Z_0-9]+ | Ruleset Name of the ruleset to be updated |
rmRuleSetResource | - | Details of the ruleset to be updated. For details on the fields for the ruleset request body, see Section A.1.4, "RmRuleset Resource". |
Parameter | Description |
---|---|
ruleset | For information on the ruleset attributes in response, see Section A.2.4, "Ruleset Response Structure". To display all the attributes of the ruleset, use the GET /management/rulesets/{ruleset} API with expand=all. |
Status Code | Description |
---|---|
200 | Success |
404 | Incorrect URI |
400 | Invalid argument/Resource Not Exists |
500 | Error while processing |
http://localhost:7001/ohmpi-rm/1.0.0/management/rulesets/CreateRelationshipRuleset
{ "name": "CreateRelationshipRuleset", "description": "Relationship ruleset between OrgProvider and IndProvider", "source": "OrgProvider" }
{ "createdBy": "rmAdmin", "createdDate": "01/08/2016", "description": "Relationship ruleset between OrgProvider and IndProvider", "links": [ { "href": "/ohmpi-rm/1.0.0/management/rulesets/CreateRelationshipRuleset", "mediaType": "application/json", "rel": "canonical" } ], "modifiedBy": "rmAdmin", "modifiedDate": "01/08/2016", "name": "CreateRelationshipRuleset", "rulesetId": 1, "ruleXml": "{canonicalLink: /ohmpi-rm/1.0.0/management/rulesets/CreateRelationshipRuleset?expand=ruleXml}", "source": "OrgProvider ", "status": "Active", "target": "IndProvider" }
200
This API is used to upload ruleset xml file.
http(s)://<server>:<port>/ohmpi-rm/1.0.0/management/rulesets/{ruleset}/files
multipart/form-data
HTTP PUT
application/json;charset=UTF-8
Parameter | Description |
---|---|
ruleset | Ruleset Name of ruleset whose xml file needs to be uploaded |
ruleSetFile | The XML file to be uploaded |
contentDisposition | MIME content-disposition header which contains name of the uploaded file. |
Parameter | Description |
---|---|
ruleset | For information on the ruleset attributes in response, see Section A.2.4, "Ruleset Response Structure". To display all the attributes of the ruleset, use the GET /management/rulesets/{ruleset} API with expand=all. |
Status Code | Description |
---|---|
200 | Success |
404 | Incorrect URI |
400 | Invalid argument/Resource Not Exists |
500 | Error while processing |
http://localhost:7001/ohmpi-rm/1.0.0/management/rulesets/CreateRelationshipRuleset/files
{ "createdBy": "rmAdmin", "createdDate": "01/08/2016", "description": "Relationship ruleset between Patient and IndProvider", "links": [ { "href": "/ohmpi-rm/1.0.0/management/rulesets/CreateRelationshipRuleset", "mediaType": "application/json", "rel": "canonical" } ], "modifiedBy": "rmAdmin", "modifiedDate": "01/08/2016", "name": "CreateRelationshipRuleset", "rulesetId": 1, "ruleXml": "{canonicalLink: /ohmpi-rm/1.0.0/management/rulesets/CreateRelationshipRuleset?expand=ruleXml}", "source": "Patient", "status": "Active", "target": "IndProvider" }
200
This API is used to retrieve the list of tasks.
http(s)://<server>:<port>/ohmpi-rm/1.0.0/management/tasks
HTTP GET
application/json;charset=UTF-8
Parameter | Value | Description |
---|---|---|
expand | all or script | View more details of the task. The all or script value displays the complete groovy script file of the task. |
totalResults | true or false | View total records count |
Parameter | Description |
---|---|
items | An array containing tasks |
task | For information on the task attributes in response, see Section A.2.5, "Task Response Structure". |
totalResults | Value is set to the total number of tasks based on the status filter. The value is displayed if totalResults is set to true in the request parameter. Otherwise, the value is null. |
Status Code | Description |
---|---|
200 | Success |
404 | Incorrect URI |
400 | Invalid argument |
500 | Error while processing |
http://localhost:7001/ohmpi-rm/1.0.0/management/tasks?totalResults=true
{ "items": [ { { "description": "Task to create relationship", "links": [ { "href": "/ohmpi-rm/1.0.0/management/tasks/CreateRelationshipTask", "mediaType": "application/json", "rel": "canonical" } ], "name": "CreateRelationshipTask ", "script": "{canonicalLink: /ohmpi-rm/1.0.0/management/tasks/CreateRelationshipTask?expand=script}", "status": "Active", "taskId": 1 } ], "links": [ { "href": "/ohmpi-rm/1.0.0/management/tasks", "mediaType": "application/json", "rel": "canonical" } ], "totalResults": 1 }
200
This API is used to retrieve the details of an existing task.
http(s)://<server>:<port>/ohmpi-rm/1.0.0/management/tasks/{task}
HTTP GET
application/json;charset=UTF-8
Parameter | Value | Description |
---|---|---|
task | Matching the regex [a-zA-Z][a-zA-Z_0-9]+ | Task Name of the task to be searched |
expand | all or script | View more details of the task. The all or script value displays the complete groovy script file of the task. |
Parameter | Description |
---|---|
task | For information on the task attributes in response, see Section A.2.5, "Task Response Structure". |
Status Code | Description |
---|---|
200 | Success |
404 | Incorrect URI |
400 | Invalid argument/Resource Not Exists |
500 | Error while processing |
http://localhost:7001/ohmpi-rm/1.0.0/management/tasks/CreateRelationshipTask
{ "description": "Task to create relationship", "links": [ { "href": "/ohmpi-rm/1.0.0/management/tasks/CreateRelationshipTask", "mediaType": "application/json", "rel": "canonical" } ], "name": "CreateRelationshipTask ", "script": "{canonicalLink: /ohmpi-rm/1.0.0/management/tasks/CreateRelationshipTask?expand=script}", "status": "Active", "taskId": 1 }
200
This API is used to register a new task.
http(s)://<server>:<port>/ohmpi-rm/1.0.0/management/tasks/{task}
application/json
HTTP POST
application/json;charset=UTF-8
Parameter | Value | Description |
---|---|---|
task | Matching the regex [a-zA-Z][a-zA-Z_0-9]+ | Task Name of the task to be registered |
rmTaskResource | - | Details of the task to be registered. For details on the fields for the task request body, see Section A.1.5, "RmTask Resource". |
Parameter | Description |
---|---|
task | For information on the task attributes in response, see Section A.2.5, "Task Response Structure". To display all the attributes of the task, use the GET /management/tasks/{task} API with expand=all. |
Status Code | Description |
---|---|
200 | Success |
404 | Incorrect URI |
400 | Invalid argument/Resource Exists |
500 | Error while processing |
http://localhost:7001/ohmpi-rm/1.0.0/management/tasks/CreateRelationship
{ "name": "CreateRelationshipTask", "description": "Task to create relationship", "status": "Active" }
{ "description": "Task to create relationship", "links": [ { "href": "/ohmpi-rm/1.0.0/management/tasks/CreateRelationshipTask", "mediaType": "application/json", "rel": "canonical" } ], "name": "CreateRelationshipTask ", "script": "{canonicalLink: /ohmpi-rm/1.0.0/management/tasks/CreateRelationshipTask?expand=script}", "status": "Active", "taskId": 1 }
200
This API is used to update an existing task.
http(s)://<server>:<port>/ohmpi-rm/1.0.0/management/tasks/{task}
application/json
HTTP PUT
application/json;charset=UTF-8
Parameter | Value | Description |
---|---|---|
task | Matching the regex [a-zA-Z][a-zA-Z_0-9]+ | Task Name of the task to be updated |
rmTaskResource | - | Details of the task to be updated. For details on the fields for the task request body, see Section A.1.5, "RmTask Resource". |
Parameter | Description |
---|---|
task | For information on the task attributes in response, see Section A.2.5, "Task Response Structure". To display all the attributes of the task, use the GET /management/tasks/{task} API with expand=all. |
Status Code | Description |
---|---|
200 | Success |
404 | Incorrect URI |
400 | Invalid argument/Resource Not Exists |
500 | Error while processing |
http://localhost:7001/ohmpi-rm/1.0.0/management/tasks/CreateRelationshipTask
{ "name": "CreateRelationshipTask", "description": "Task to create relationship in RM Database" }
{ "description": "Task to create relationship in RM Database ", "links": [ { "href": "/ohmpi-rm/1.0.0/management/tasks/CreateRelationshipTask", "mediaType": "application/json", "rel": "canonical" } ], "name": "CreateRelationshipTask ", "script": "{canonicalLink: /ohmpi-rm/1.0.0/management/tasks/CreateRelationshipTask?expand=script}", "status": "Active", "taskId": 1 }
200
This API is used to upload script file for a task.
http(s)://<server>:<port>/ohmpi-rm/1.0.0/management/tasks/{task}/files
multipart/form-data
HTTP PUT
application/json;charset=UTF-8
Parameter | Description |
---|---|
task | Task Name of task whose groovy script file needs to be uploaded |
rmTaskFile | Groovy script file to be uploaded |
contentDisposition | MIME content-disposition header which contains name of the uploaded file. |
Parameter | Description |
---|---|
task | For information on the task attributes in response, see Section A.2.5, "Task Response Structure". To display all the attributes of the task, use the GET /management/tasks/{task} API with expand=all. |
Status Code | Description |
---|---|
200 | Success |
404 | Incorrect URI |
400 | Invalid argument/Resource Not Exists |
500 | Error while processing |
http://localhost:7001/ohmpi-rm/1.0.0/management/tasks/CreateRelationshipTask/files
{ "description": "Task to create relationship", "links": [ { "href": "/ohmpi-rm/1.0.0/management/tasks/CreateRelationshipTask", "mediaType": "application/json", "rel": "canonical" } ], "name": "CreateRelationshipTask ", "script": "{canonicalLink: /ohmpi-rm/1.0.0/management/tasks/CreateRelationshipTask?expand=script}", "status": "Active", "taskId": 1 }
200