GET /api/v1/edc/studies/PHARMADEMO/recordRevisions?page=0&size=25&sort=recordRevisionId%2CASC&filter=subjectKey%3D%3D270 HTTP/1.1
Content-Type: application/json
Host: localhost:8080
Given a StudyKey, fetch the set of record revisions. Each record revision represents a distinct state (revision) in the lifecycle of a record. Record revisions are related to records in that each record has one-to-many record revisions. Any time data is modified on a record, or a record progresses to a new status, a new record revision is captured.
A GET
request is used to access the index
GET /api/v1/edc/studies/PHARMADEMO/recordRevisions?page=0&size=25&sort=recordRevisionId%2CASC&filter=subjectKey%3D%3D270 HTTP/1.1
Content-Type: application/json
Host: localhost:8080
Path parameters are required.
Parameter | Description |
---|---|
|
StudyKey to retrieve list of record revisions |
Request parameters are optional. Default values are used unless specified.
Parameter | Description |
---|---|
|
Which index page to be returned. Default value is 0. |
|
Items per page to be returned. Default value is 25. Maximum items allowed per page is 500 |
|
Name of the property by which to sort the result set. To sort in a particular direction add a comma to the property name and either |
|
Optional filter search criteria. Must follow correct syntax. Refer to filter section for details. |
Below is an example response payload.
{
"metadata" : {
"status" : "OK",
"method" : "GET",
"path" : "/api/v1/edc/studies/PHARMADEMO/recordRevisions",
"timestamp" : "2024-11-04 16:03:19",
"error" : { }
},
"pagination" : {
"currentPage" : 0,
"size" : 25,
"totalPages" : 1,
"totalElements" : 1,
"sort" : [ {
"property" : "recordRevisionId",
"direction" : "ASC"
} ]
},
"data" : [ {
"studyKey" : "PHARMADEMO",
"recordRevisionId" : 1,
"recordId" : 1,
"recordOid" : "REC-1",
"recordRevision" : 1,
"dataRevision" : 1,
"recordStatus" : "Record Complete",
"subjectId" : 247,
"subjectOid" : "OID-1",
"subjectKey" : "001-003",
"siteId" : 2,
"formKey" : "AE",
"intervalId" : 15,
"role" : "Research Coordinator",
"user" : "jdoe",
"reasonForChange" : "Data entry error",
"deleted" : true,
"dateCreated" : "2024-11-04 16:03:19"
} ]
}
Path | Type | Description |
---|---|---|
|
|
Http status |
|
|
Http method |
|
|
Requested URI path |
|
|
Timestamp when response was generated |
|
|
Detailed error message from request if an error occured |
|
|
Current index page |
|
|
Size per page |
|
|
Total pages returned from search |
|
|
Total elements returned from search |
|
|
Sort property |
|
|
Sort direction |
|
|
Unique study key for a given study |
|
|
Unique system identifier for the record revision |
|
|
Unique system identifier for the related record |
|
|
Client-assigned record OID |
|
|
Record revision number |
|
|
Data revision number |
|
|
User defined record status |
|
|
Mednet Subject ID |
|
|
Client-assigned subject OID |
|
|
Protocol-assigned subject identifier |
|
|
Unique system identifier for the related site |
|
|
Form key |
|
|
Unique system identifier for Interval |
|
|
Role name of the user who saved the record revision |
|
|
Username of the user who saved the record revision |
|
|
Record revision’s Reason For Change data |
|
|
Record deleted flag |
|
|
Date when this record revision was created |