Skip to main content
GET/transactional-api/get-patient-questionnaire-template-version

Get Patient Questionnaire Template Version

Returns the content and metadata for a specific patient questionnaire template version.

Authorization: Bearer token (JWT). See Authentication.

Request​

curl -L -X GET 'https://{tenantId}.api.england.medicus.health/transactional-api/get-patient-questionnaire-template-version' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <token>'

Path and query parameters

NameInTypeRequiredDescription
versionIdquerystring<uuid>Yes

Responses​

200 Patient questionnaire template version.

Response fields

FieldTypeDescription
idstring<uuid>
templateIdstring<uuid>
versionNumberstring
statusenumOne of: draft, active, archived.
contentstring (nullable)
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"templateId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"versionNumber": "1.0",
"status": "draft",
"content": "<PatientQuestionnaireTemplate><Question name=\"painLevel\" /></PatientQuestionnaireTemplate>"
}
400 Invalid request.

Response fields

FieldTypeDescription
errors[].codestring
errors[].descriptionstring
{
"errors": [
{
"code": "invalid-field",
"description": "versionId must be a valid UUID."
}
]
}
404 Version not found.