Epi-Management API
GetEncounterSocialHistory
-
This api is used to get data for the encounter social history.
The access token needs to be sent in this api call. Other parameters that can be seen in the headers section here are optional.
POST
https://neregaws.epilepsygroup.com/nereg.prod/rest/GetEncounterSocialHistory
-
HEADERS
Content-Typeapplication/json
Accept-Encodingapplication/gzip
Content-Typeapplication/x-www-form-urlencoded
-
BODY Raw
{
"token": "xxxxxx-xxxx-xxxx-xxxx-xxxxx",
"encounterid": "",
"fromdate": "",
"todate": ""
} -
Example Request
curl --location --request POST 'https://neregaws.epilepsygroup.com/nereg.prod/rest/GetEncounterSocialHistory' \
--header 'Content-Type: application/json' \
--header 'Accept-Encoding: application/gzip' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: AWSALB=YHDNYRKt7lIb3JtCKytbrGQhffjcsblPVeiVNK56ItxCZvNWrMvbWu4gPCjrYDJVGF1V74Rgx/u7fBSGozIsqP/m/oqGCNSNQ50MU8RI9+NfiOoNkTlDtgeFFSGC; AWSALBCORS=YHDNYRKt7lIb3JtCKytbrGQhffjcsblPVeiVNK56ItxCZvNWrMvbWu4gPCjrYDJVGF1V74Rgx/u7fBSGozIsqP/m/oqGCNSNQ50MU8RI9+NfiOoNkTlDtgeFFSGC' \
--data-raw '{
"token":"xxxxxx-xxxx-xxxx-xxxx-xxxxx",
"encounterid":"",
"fromdate":"",
"todate":""
}
' -
Response
200
Body
{ "SocialHistoryResponse": { "Response": { "error": "", "status": "OK" }, "SocialHistory": [ { "EncounterData": { "EffectiveDateTime": "2015-06-22T11:00:00", "ID": "979" }, "socialHistoryListObj": [ { "effectiveTimeHigh": "", "effectiveTimeLow": "20150622", "id": "", "status": "", "valueCode": "449868002", "valueDisplayName": "Current every day smoker" } ] } ] } }