Skip to content

Commit

Permalink
OHRI-2062 Documentation for Problem Rendering type (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
ODORA0 authored Jan 18, 2024
1 parent b2bf8dd commit 40e9b2b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions pages/docs/field-types-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -554,3 +554,22 @@ The ui-select-extended also has 2 flavours (`preloaded` and `searchable`)
``
"isSearchable": "true"
``
## problem

This will render a dropdown list that is hooked up to a Problem DataSource. This field will have answers that have class Diagnosis, Problem or Symptom For example: Reason for hospitalisation: answers such as malaria, fever utilising the ui-select-extended control to render concepts of class Diagnosis and Symptom.

```json copy
{
"label": "Adverse Drug Reaction",
"type": "obs",
"questionOptions": {
"rendering": "problem",
"concept": "162297AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
"id": "problemID"
}
```

Renders:

![Radio field](/problemRender.gif)
Binary file added public/problemRender.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 40e9b2b

Please sign in to comment.