Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OHRI-2061 Documentation for Drug rendering type #23

Merged
merged 2 commits into from
Jan 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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.