Skip to content

Commit

Permalink
OHRI-2061 Documentation for Drug rendering type (#23)
Browse files Browse the repository at this point in the history
* OHRI-2061 Documentation for Drug rendering type

* Add drug selection gif
  • Loading branch information
ODORA0 authored Jan 18, 2024
1 parent 40e9b2b commit a6f2433
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion pages/docs/field-types-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -572,4 +572,24 @@ This will render a dropdown list that is hooked up to a Problem DataSource. This

Renders:

![Radio field](/problemRender.gif)
![Radio field](/problemRender.gif)

## drug

This Rendering type is used for capturing a drug as an observation. Behind the scenes this is done by introducing the drug data source and utilising functionality of the ui-select-extended control.

```json copy
{
"label": "Select a drug",
"type": "obs",
"questionOptions": {
"rendering": "drug",
"concept": "8d490dfc-c2cc-11de-8d13-0010c6dffd0f"
},
"id": "drug_select"
},
```

renders:

![Radio field](/drugRender.gif)
Binary file added public/drugRender.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 a6f2433

Please sign in to comment.