LinkWatch
  • Documentation
    • Authorization
    • UserAccount
    • HealthProfessional
    • Patient
    • TypeIdentifier
    • Observation
    • Measurement
    • Questionnaire
    • GenericResponse
  • API
  • Postman

Questionnaire description

A resource that handle storage and retrieval of different questionnaire. Based on two generic parts, the first part represents the meta data of the questionnaire and the second part all the answers.

Send

Store a questionnaire with its corresponding answers. Uses the Token header to identify the patient the quesetionnaire belongs to. Send

Example

POST: {baseurl}/api/v1/questionnaire/send

Request
Body
{
 "Qid": "TEST_QUESTIONNAIRE01",
 "Timestamp": "2017-04-26T12:00:00.000+02:00",
 "Date": "2017-04-26",
 "Completed": 0,
 "TimingEvent": "PCV",
 "Answers": [
  {
   "Aid": "1",
   "Value": "1"
  },
  {
   "Aid": "2",
    "Value": "4"
   }
 ]
}
Headers

Accept: application/json
Content-Type: application/json
Token: 09FDA49F-1D96-4A8E-9F99-FD7A4DED103C

Response
Body
{
 "Result": "AA",
 "Message": ""
}
Headers

Content-Type: application/json

Get

Retrieve a single questionnaire with its corresponding answers. Uses the Token header to identify the patient the quesetionnaire belongs to. Get

Example

GET: {baseurl}/api/v1/questionnaire/get?qid=TEST_QUESTIONNAIRE01&date=2017-04-26&timingevent=PCV

Request
Headers

Accept: application/json
Content-Type: application/json
Token: 09FDA49F-1D96-4A8E-9F99-FD7A4DED103C

Response
Body
{
 "Qid": "TEST_QUESTIONNAIRE01",
 "Timestamp": "2017-04-26T12:00:00.000+02:00",
 "Date": "2017-04-26",
 "Completed": 0,
 "TimingEvent": "PCV",
 "Answers": [
  {
   "Aid": "1",
   "Value": "1"
  },
  {
   "Aid": "2",
    "Value": "4"
   }
 ]
}
Headers

Content-Type: application/json


© 2025 - LinkWatch API