Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.idea/
.idea/
.venv
.venv/*
24 changes: 6 additions & 18 deletions api-reference/general-tools/assessment/questionnaire_data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,22 @@ openapi: get /assessment/api/v1/questionnaire_data/{assessment_id}/


The format of the response is as follows:
### Response

```json
{
"data": {
"practitioner": {
// practitioner details (who has done the assessment)
"practitioner": {
"practitioner_uuid": "<string>"
},
"patient": {
// patient details (for whom the assessment is done)
"patient": {
"unique_identifier": "<string>",
"patient_uuid": "<string>",
"age": "<integer>",
"gender": "<m/f/o>",
},
"questionnaire": [
{
"question": "<string>",
"answer": "<string>",
"items": [
{
"question": "<string>",
"answer": "<string>"
"items": []
}
]
},
]
}
// questionnaire data in fhir format.
"fhir_data": {}
}
```
---
100 changes: 65 additions & 35 deletions api-reference/general-tools/assessment/questionnaire_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ paths:
- Get Questionnaire Data
summary: Get Questionnaire Data
description: >-
This API retrieves the questionnaire data for a given assessment ID. The questionnaire data includes all the available information about `practitioner`, `patient` and `questionnaire`.
This API retrieves the questionnaire data for a given assessment ID. The questionnaire data includes all the available information about `practitioner`, `patient` and `fhir_data`.

security:
- authApiKey: []
Expand All @@ -30,7 +30,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Questionnaire-200'
$ref: '#/components/schemas/QuestionnaireData-200'
"400":
description: Bad Request
content:
Expand Down Expand Up @@ -84,7 +84,7 @@ components:
example: application/json

schemas:
Questionnaire-200:
QuestionnaireData-200:
type: object
properties:
data:
Expand Down Expand Up @@ -113,39 +113,69 @@ components:
type: string
nullable: true
example: "m"
questionnaire:
type: array
items:
type: object
properties:
question:
type: string
example: "What symptoms are you facing?"
answer:
type: string
example: "Fever, Cough"
fhir_data:
type: object
properties:
resourceType:
type: string
example: "Bundle"
type:
type: string
example: "document"
link:
type: array
items:
type: array
items:
type: object
properties:
question:
type: string
example: "Fever"
answer:
type: string
example: "99.5"
items:
type: array
items:
type: object
properties:
question:
type: string
example: "When did the fever start?"
answer:
type: string
example: "2 days ago"
type: object
properties:
url:
type: string
example: "https://eka.care/sn_1234567890"
relation:
type: string
example: "object"
entry:
type: array
items:
type: object
properties:
resource:
type: object
fullUrl:
type: string
example: "Composition/f0b76f12-544d-4e40-8153-5e61cajsbca6"
id:
type: string
example: "sn_1234567890"
meta:
type: object
properties:
versionId:
type: string
example: "1"
lastUpdated:
type: string
example: "2025-03-03T06:45:01.416+00:00"
profile:
type: array
items:
type: string
example: "https://nrces.in/ndhm/fhir/r4/StructureDefinition/DocumentBundle"
security:
type: array
items:
type: object
identifier:
type: object
properties:
system:
type: string
example: "https://eka.care"
value:
type: string
example: "sn_1234567890"
timestamp:
type: string
example: "2025-03-03T06:45:01.416+00:00"
Generic-Error:
type: object
properties:
Expand Down
4 changes: 4 additions & 0 deletions api-reference/general-tools/medical/voice/end-transcribe.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: End Transcribe
openapi: POST /api/v2/transaction/commit/{session_id}
---
4 changes: 4 additions & 0 deletions api-reference/general-tools/medical/voice/init-transcribe.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Initiate Transcribe
openapi: POST /api/v2/transaction/init/{session_id}
---
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
title: Retrive Transcribe
openapi: GET /health/api/v1/fhir/retrieve
title: Retrieve Result
openapi: GET /voice-record/api/status/{session_id}
---
Loading