ЕСОЗ - публічна документація
RC_[NEW] Dictionaries configurations
Overview
Dictionary configuration specifies a set of dictionaries and, optionally, specific codes from the dictionary, intended for use in a particular context.
Data Model
Name | Type | M/O |
Description and constraints |
---|---|---|---|
id | uuid | M | Dictionary configuration id |
name | string | M | Dictionary configuration name |
content | json | M | JSON that contains list of dictionaries and, optionally, specific codes, that are allowed to use by this configuration |
inserted_at | datetime | M |
|
updated_at | datetime | M |
|
inserted_by | uuid | M |
|
updated_by | uuid | M |
|
Dictionary configuration content structure
Name | Type | M/O |
Description and constraints |
---|---|---|---|
system | string | M | Dictionary name |
codes | [string] | O | Array of codes from the dictionary |
Examples:
Content for prescribable_device_codes:
[
{
"system": "assistive_devices"
},
{
"system": "device_definition_classification_type"
},
{
"system": "emdn",
"codes": [
"C8732658",
"T6547532"
]
}
]
Content for assistive_devices:
[
{
"system": "assistive_devices"
},
{
"system": "emdn",
"codes": [
"C8732658"
]
}
]
Validation logic
In parameters: configuration_name, code_value, code_system
Select dictionary configuration where name=
configuration_name
from PRMFind
code_system
in content.[].systemin case
code_system
is not in the array return false
If there is content.[].codes specified for this element
Check that
code_value
is in content.[].codes where content.[].system=code_system
in case
code_value
is not in the array return false
Return true
ЕСОЗ - публічна документація