Get a list of demographics data associated with the user

Returns a list of demographics data associated with the user
GET https://api.humanapi.co/v1/human/medical/demographics

Returns a single record of demographics data associated with the user
GET https://api.humanapi.co/v1/human/medical/demographics/{id}

# Returns a json array of demographics:
[
    {
        "address": {
            "city": "SAN FRANCISCO",
            "country": "USA",
            "state": "CA",
            "street": [
                "123 Lucas Drive"
            ],
            "zip": "95131"
        },
        "ccd": {
            "href": "/medical/ccds/5b3056dd711be0bff640e105",
            "id": "5c3056db711b20bff610e105"
        },
        "createdAt": "2018-07-12T20:16:36.159Z",
        "dob": "05/20/1971",
        "dobDateTime": "1971-05-20T00:00:00.000Z",
        "ethnicity": "Not Hispanic or Latino",
        "ethnicityCodes": [
            {
                "code": "2186-5",
                "codeSystemName": "RACE&ETHNICITY-CDC",
                "inferred": true
            },
            {
                "code": "2131-1",
                "codeSystemName": "RACE&ETHNICITY-CDC",
                "inferred": true
            }
        ],
        "gender": "male",
        "genderCodes": [
            {
                "code": "703117000",
                "codeSystemName": "SNOMED-CT",
                "inferred": true
            }
        ],
        "id": "5b47b7344e72eb0022b9b5a2",
        "language": "eng",
        "languageCodes": [
            {
                "code": "315570003",
                "codeSystemName": "SNOMED-CT",
                "inferred": true
            }
        ],
        "maritalStatus": "married",
        "maritalStatusCodes": [
            {
                "code": "87915002",
                "codeSystemName": "SNOMED-CT",
                "inferred": true
            }
        ],
        "name": {
            "family": "Archer",
            "given": [
                "Archer",
                "B"
            ]
        },
        "organization": {
            "href": "/medical/organizations/54dc427aaa6b4cb7d620302f",
            "id": "54dc427aaa6b4cb7d620302f",
            "name": "Starfleet Medical"
        },
        "provider": {
            "address": {
                "city": "San Francisco",
                "country": "USA",
                "state": "CA",
                "zip": "94156"
            },
            "organization": "Starfleet Medical"
        },
        "race": "White",
        "raceCodes": [
            {
                "code": "185984009",
                "codeSystemName": "SNOMED-CT",
                "inferred": true
            },
            {
                "code": "2106-3",
                "codeSystemName": "RACE&ETHNICITY-CDC",
                "inferred": true
            }
        ],
        "updatedAt": "2018-07-12T20:16:36.159Z"
    }
]
# Get all demographics data associated with the user
# Note that the demo access token currently returns an empty array. The results in the JSON tab are fictional values. 
curl -H "Authorization: Bearer demo" "https://api.humanapi.co/v1/human/medical/demographics"

Response Properties

PropertyTypeDescription
idStringId of the resource
updatedAtDateTime the record was updated on the Human API server
createdAtDateTime the record was created on the Human API server
nameObject(optional) See name object
dobString(optional) Date of birth of the patient e.g. "05/20/1971"
dobDateTimeString(optional) Date of birth of the patient e.g. "1971-05-20T00:00:00.000Z"
ethnicityString(optional) Ethnicity of the patient e.g. "Not Hispanic or Latino"
ethnicityCodesArray[Object](optional) CDC Race & Ethnicity and SNOMED CT Ethnicity codes: See codes
genderString(optional) Gender of the patient e.g. "male"
genderCodesArray[Object](optional) SNOMED CT Gender codes: See codes
languageString(optional) Preferred spoken language of the patient e.g. "eng"
languageCodesArray[Object](optional) SNOMED CT Language codes: See codes
maritalStatusString(optional) Marital status of the patient e.g. "married"
maritalStatusCodesArray[Object](optional) SNOMED CT Marital codes: See codes
providerObjectSee Provider Object details below
organizationObjectSee organizations
raceString(optional) Race of the patient e.g. "White"
raceCodesArray[Object](optional) SNOMED CT Race codes: See codes
codesArray[Object](optional) See codes
ccdObject(optional) See CCD Object details below

CCD Object

PropertyTypeDescription
hrefStringLink to a more detailed CCD object
idStringid of the CCD

Provider Object

PropertyTypeDescription
organizationString(optional) The name of the medical source
addressObject(optional) See Address Object below

Address Object (from Provider Object)

PropertyTypeDescription
cityString(optional) City of the provider e.g. "San Francisco"
countryString(optional) Country of the provider e.g. "USA"
stateString(optional) State of the provider e.g. "CA"
zipString(optional) Zip code of the provider e.g. "94156"
streetArray[String](optional) Street and number of the address e.g. '["123 Lucas Drive"]'