Retrieve Demographics for a Subject Record id
get
/ohfapi/cg/v3.3/subjectapi/subjects/{id}
This endpoint supports the retrieval of Demographics for a Subject Record (row) id. It returns Subject information like Human Name, Telecom, Address and other Subject associated information.
Request
Supported Media Types
- application/json
- application/xml
Path Parameters
-
id: integer(int64)
Subject Row Id
Security
-
basicAuth: basic
Type:
basic
Response
Supported Media Types
- application/json
- application/xml
200 Response
successful operation
Root Schema : Subject
Type:
Show Source
object
-
address(optional):
object Address
Model for a postal address.
-
birthDate(optional):
string(date-time)
Date of Birth
-
deceasedBoolean(optional):
boolean
Deceased or Not
-
deceasedDate(optional):
string(date-time)
Deceased Date
-
endDate(optional):
string(date-time)
Enrollment End Date
-
enrollmentDate(optional):
string(date-time)
Enrollment Date
-
ethnicity(optional):
object LinkedReference
-
gender(optional):
object CodeableConcept
Model that represents a value as a reference to one or more terminologies or ontologies or defined by the provision of text.
-
identifiers(optional):
array identifiers
Specimen Identifier
-
maritalStatus(optional):
object CodeableConcept
Model that represents a value as a reference to one or more terminologies or ontologies or defined by the provision of text.
-
name(optional):
object HumanName
Model for a name of a human with text and parts information.
-
patient(optional):
object LinkedReference
-
patientIdentifier(optional):
string
Patient Identifier
-
race(optional):
object LinkedReference
-
startDate(optional):
string(date-time)
Enrollment Start Date
-
studyIdentifier(optional):
string
Study Identifier
-
studyName(optional):
string
Study Name
-
telecom(optional):
object Telecom
Nested Schema : Address
Type:
object
Model for a postal address.
Show Source
-
city(optional):
string
Name of city, town etc.
-
country(optional):
object CodeableConcept
Model that represents a value as a reference to one or more terminologies or ontologies or defined by the provision of text.
-
district(optional):
string
District name (aka county).
-
line(optional):
array line
Street name, number, direction & P.O. Box etc.
-
postalCode(optional):
string
Postal code for area.
-
state(optional):
object CodeableConcept
Model that represents a value as a reference to one or more terminologies or ontologies or defined by the provision of text.
Nested Schema : CodeableConcept
Type:
object
Model that represents a value as a reference to one or more terminologies or ontologies or defined by the provision of text.
Show Source
-
coding(optional):
array coding
Read Only:
true
Code(s) defined by a terminology system. -
text(optional):
string
Plain text representation of the concept.
Nested Schema : identifiers
Type:
array
Specimen Identifier
Show Source
-
Array of:
object Identifier
Identifier assigned by a given system
Nested Schema : HumanName
Type:
object
Model for a name of a human with text and parts information.
Show Source
-
family(optional):
string
Family name (often called 'Surname').
-
given(optional):
array given
Given names (not always 'first'). Includes middle names.
-
text(optional):
string
Text representation of the full name.
Nested Schema : Telecom
Type:
Show Source
object
-
use(optional):
object CodeableConcept
Model that represents a value as a reference to one or more terminologies or ontologies or defined by the provision of text.
-
value(optional):
string
Telecom Value
Nested Schema : coding
Type:
array
Read Only:
true
Code(s) defined by a terminology system.
Show Source
-
Array of:
object Coding
Model for a reference to a code defined by a terminology system.
Nested Schema : Coding
Type:
object
Model for a reference to a code defined by a terminology system.
Show Source
-
code(optional):
string
Symbol in syntax defined by the system.
-
description(optional):
string
Description defined by the system.
-
display(optional):
string
Representation defined by the system.
-
srvcProviderId(optional):
string
Service Provider Id of Specimen Alias .
-
srvcProviderName(optional):
string
Service Provider Name of Specimen Alias .
-
sysId(optional):
string
Identity of the terminology system.
-
sysName(optional):
string
Name of the terminology system.
-
sysVersion(optional):
string
Version of the system - if relevant.
Nested Schema : Identifier
Type:
object
Identifier assigned by a given system
Show Source
-
system(optional):
string
System which assigned this identifier
-
value(optional):
string
Identifier value
Nested Schema : given
Type:
array
Given names (not always 'first'). Includes middle names.
Show Source
400 Response
Invalid parameters supplied
404 Response
Subject(s) not found
Examples
The following example submits a GET request.
API URL
http://localhost:7010/ohfapi/cg/v3.3/subjectapi/subjects/1
Example of Response Body
The following example shows the response returned in JSON format.
{ "identifiers": [ { "system": "CDM", "value": "1" }, { "system": "Customer Defined", "value": "S1_1" } ], "studyName": "STUDY1", "studyIdentifier": "1", "patientIdentifier": "P2_2", "patient": { "reference": "/ohfapi/cg/v3.3/subjectapi/subjects/1/patients" }, "name": { "text": "Juan MN1 Hernandez", "family": "Hernandez", "given": [ "Juan", "MN1" ] }, "telecom": { "value": "info@oracle.com", "use": { "coding": [ { "code": "CNTCT_INFO_SUBTYP_EML", "display": "Email", "description": "Communicate electronically on the computer", "sysId": "EHA_CUSTOM_CD_SYS", "sysName": "EHA Custom Code System", "sysVersion": "1" } ] } }, "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" } ] }, "address": { "line": [ "SADD11", "SADD21", "SADD31" ], "city": "C1", "district": "C1", "state": { "coding": [ { "code": "1", "display": "State1", "description": "State1Desc", "sysId": "EHA_CUSTOM_CD_SYS", "sysName": "EHA Custom Code System", "sysVersion": "1" } ] }, "postalCode": "Z1", "country": { "coding": [ { "code": "1", "display": "USA", "description": "United state of America", "sysId": "EHA_CUSTOM_CD_SYS", "sysName": "EHA Custom Code System", "sysVersion": "1" } ] } }, "race": { "reference": "/ohfapi/cg/v3.3/subjectapi/subjects/1/race" }, "ethnicity": { "reference": "/ohfapi/cg/v3.3/subjectapi/subjects/1/ethnicity" } }