Quick Start

Set up your environment and create your first instance using the Clinical Genomic APIs by performing the following tasks.

Prerequisites

Prerequisite More Information

Install Oracle Healthcare Foundation (OHF) 7.2

This installer creates the OHF data model, Data Management Assembly for Oracle Data Integrator(ODI) and Informatica, WebLogic domain (oh_domain) and the managed WebLogic server. All OHF-related applications are deployed in the managed server. It also creates OHF user groups. The Active state of the deployment ensures that the application has been deployed successfully.

Step 1: Create Users

All REST API calls are stateless and therefore require authentication information for each request. Make sure that the user has proper application roles. Following are the roles created in the application as part of the middle tier installation:

  • ohf_cg_admin_group- This is reserved for the admin role.

  • ohf_cg_api_group- This is the API consumer user role.

If they do not exist, users must be manually created and assigned to the respective roles in the WebLogic Server. To create users using WebLogic:
  1. Log into the WebLogic console at http://<hostname>:<port>/console

  2. Navigate to Domain Structure > <Domain Name> > Security Realms > myRealm > Users and Groups > Users > New.

  3. Create a new user by entering the Name, Description and Password.

  4. Select the new user you just created and navigate to Groups.

  5. Assign the user to the groups ohf_cg_admin_group or ohf_cg_api_group.

Step 2: Execute a Web Service

You may use any tool available to execute a Web API. For example, Advanced Rest Client, cURL. For details on using cURL, see Using cURL.

To execute an API, the following name-value pairs are mandatory in the Request header:

  • Accept: application/json OR application/xml

  • X-Requested-By: OHF

  • Content-Type : application/json

  • Authentication : username and password configured in Step 1.

Following are some examples of GET and POST APIs.

Example: GET request

http://localhost:7010/ohfapi/cg/v3.3/patientapi/patients/1

Request Header:

Accept: application/json
X-Requested-By: OHF
Username: <username> 

Expected Response:

The response you receive will be similar to the following.

{
  "identifiers": [
    {
      "system": "CDM",
      "value": "1"
    },
    {
      "system": "Customer Defined",
      "value": "P1_1"
    }
  ],
  "name": {
    "text": "James MN1 Young",
    "family": "Young",
    "given": [
      "James",
      "MN1"
    ]
  },
  "gender": {
    "coding": [
      {
        "code": "1",
        "display": "Male",
        "description": "Male",
        "sysId": "EHA_CUSTOM_CD_SYS",
        "sysName": "EHA Custom Code System",
        "sysVersion": "1"
      }
    ]
  },
  "birthDate": "01/01/1945",
  "deceasedBoolean": false,
  "maritalStatus": {
    "coding": [
      {
        "code": "1",
        "display": "Married",
        "description": "Married",
        "sysId": "EHA_CUSTOM_CD_SYS",
        "sysName": "EHA Custom Code System",
        "sysVersion": "1"
      }
    ]
  },
  "race": {
    "reference": "/ohfapi/cg/v3.3/patientapi/patients/10/race"
  },
  "ethnicity": {
    "reference": "/ohfapi/cg/v3.3/patientapi/patients/10/ethnicity"
  },
  "subject": {
    "reference": "/ohfapi/cg/v3.3/patientapi/patients/10/subjects"
  }
}

For details on this web service, see Retrieve Demographics for a Patient Identifier.

Example: POST request

http://localhost:7010/ohfapi/cg/v3.3/geneSets/create

Request Header :

Accept: application/json
X-Requested-By: OHF
Content-Type : application/json
Username: <username>

Request Body:

{
  "hugoNames": ["BID","EGFR"],
   "geneNames":["ENSG00000015475"],
   "species" : "homo sapiens",
   "assemblyVersions":["GRCh37"],
   "geneSetName":"geneSet",
   "geneSetDesc":"geneSetDesc"
     
}

Expected Response:

{
  "geneSetId": 10000000002249,
  "geneSetName": "geneSet",
  "geneSetDesc": "geneSetDesc",
  "geneCount": 2,
  "geneSetMember": {
    "reference": "/ohfapi/cg/v3.3/geneSets/10000000002249"
  }
}

For details on this web service, see Create Geneset.

Step 3: Troubleshooting

To view the errors while executing a web service, see the log file located at:

  • <MIDDLEWARE_HOME>/user_projects/domains/oh_domain/servers/AdminServer/logs/AdminServer-diagnostic.log

  • <MIDDLEWARE_HOME>/user_projects/domains/oh_domain/servers/<servername>_MS_1/logs/<servername>_MS_1-diagnostic.log