Upsert EHR Data for a particular subject and a visit

put

/ec-dc-svc/rest/v1.0/studies/{studyId}/{mode}/ehrdata

This API would act as upsert: it would insert if the data is not present or update if present.
Rights: DataCaptureSubjectPost, SubjectDataClassificationPost

Request

Path Parameters
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : ContextEhr
Type: object
Show Source
Nested Schema : forms
Type: array
Show Source
Nested Schema : CoreDataEHRFormElementRequestDto
Type: object
Show Source
Nested Schema : dataElements
Type: array
Show Source
Nested Schema : CoreDataElementEhr
Type: object
Show Source
Nested Schema : occCodes
Type: array
Show Source
Back to Top

Response

Supported Media Types

200 Response

Subjects success.
Body ()
Root Schema : DataElementDto15
Type: object
Show Source
Nested Schema : targets
Type: array
Show Source

400 Response

Bad request.
Body ()
Root Schema : DcsResponse
Type: object
Show Source
Nested Schema : ErrorResponseData
Type: object
Show Source
Nested Schema : result
Type: object
Nested Schema : details
Type: object
Back to Top