Student Medical Consents
GET/students/:communityId/medical/consents
Fetches a student's relevant medical consent information such as the consent type, whom it is given by, the given date, the expiry date, and the modified date.
For a list of all consent types, go to Lookup - Consent Type.
Request
Path Parameters
communityId uuidrequired
The unique identifier of the community member.
Responses
- 200
- 400
- 401
- 403
- 404
- 422
- 500
- application/json
- Schema
- Example (from schema)
- Successful
Schema
- Array [
- ]
code stringrequired
Status Code
data object[]
id uuidrequired
consentType objectrequired
consentGivenById stringnullablerequired
consentGivenByName stringnullablerequired
isConsentGiven booleanrequired
comment stringnullablerequired
consentGivenDate datenullablerequired
consentExpiryDate datenullablerequired
modifiedDate date-timenullablerequired
{
"code": "OK",
"data": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"consentType": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"description": "string",
"code": "string"
},
"consentGivenById": "string",
"consentGivenByName": "string",
"isConsentGiven": true,
"comment": "string",
"consentGivenDate": "2025-03-12",
"consentExpiryDate": "2025-03-12",
"modifiedDate": "2025-03-12T03:31:59.404Z"
}
]
}
{
"code": "OK",
"data": [
{
"id": "fe0e86d1-8a75-4805-8900-ac0a5eb8d552",
"consentType": {
"id": "01baec2e-8204-4aad-b798-d803eedc1a3b",
"description": "Anti inflammatory consent",
"code": "ANTIINFLAMMATORY"
},
"consentGivenDate": "2024-05-31",
"consentExpiryDate": "2025-05-31",
"modifiedDate": "2024-05-31T00:00:00Z",
"consentGivenByName": "ADDISONER, Mr Connor Garrick",
"consentGivenById": "24bfe081-0364-4560-a627-0d752e176143",
"isConsentGiven": true,
"comment": "Parent gives consent"
}
]
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
errors object[]required
code stringrequired
message stringrequired
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}
{
"errors": [
{
"code": "PA1100",
"message": "Bad Request"
}
]
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
errors object[]required
code stringrequired
message stringrequired
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}
{
"errors": [
{
"code": "PA1101",
"message": "Unauthorized"
}
]
}
Forbidden
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
errors object[]required
code stringrequired
message stringrequired
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}
{
"errors": [
{
"code": "PA1102",
"message": "Forbidden"
}
]
}
Resource not found
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
errors object[]required
code stringrequired
message stringrequired
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}
{
"errors": [
{
"code": "PA1103",
"message": "Not Found"
}
]
}
Unprocessable entity
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
errors object[]required
code stringrequired
message stringrequired
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}
{
"errors": [
{
"code": "PA1108",
"message": "Unprocessable Entity"
}
]
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
errors object[]required
code stringrequired
message stringrequired
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}
{
"errors": [
{
"code": "PA1109",
"message": "Internal Server Error"
}
]
}
Loading...