Retrieve Demographics for a Subject Identifier

get

/HSDataService-web/api/3.2.0/subjectapi/subjects/{id}

This endpoint supports the retrieval of Demographics for a Subject Identifier. 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
Type: integer (int64)
Required: true
Subject Identifier

Response

Supported Media Types
  • application/json
  • application/xml
200 Response
successful operation
Body
Root Schema : Subject
Type: object
Nested Schema : Address
Type: object
Model for a postal address.
Nested Schema : LinkedReference
Type: object
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.
Nested Schema : identifiers
Type: array
Specimen Identifier
Nested Schema : HumanName
Type: object
Model for a name of a human with text and parts information.
Nested Schema : Telecom
Type: object
Nested Schema : line
Type: array
Street name, number, direction & P.O. Box etc.
Nested Schema : coding
Type: array
Read Only: true
Code(s) defined by a terminology system.
Nested Schema : Coding
Type: object
Model for a reference to a code defined by a terminology system.
Nested Schema : Identifier
Type: object
Identifier assigned by a given system
Nested Schema : given
Type: array
Given names (not always 'first'). Includes middle names.
400 Response
Invalid parameters supplied
404 Response
Subject(s) not found

Examples

The following example submits a GET request.

API URL

http://localhost:700l/HSDataService-web/api/3.2.0/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": "/HSDataService-web/api/3.2.0/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": "/HSDataService-web/api/3.2.0/subjectapi/subjects/1/race"
        },
        "ethnicity":
        {
            "reference": "/HSDataService-web/api/3.2.0/subjectapi/subjects/1/ethnicity"
        }
    }