ЕСОЗ - публічна документація

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

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

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

  1. Select dictionary configuration where name= configuration_name from PRM

  2. Find code_system in content.[].system

    1. in case code_system is not in the array return false

  3. If there is content.[].codes specified for this element

    1. Check that code_value is in content.[].codes where content.[].system= code_system

      1. in case code_value is not in the array return false

  4. Return true

ЕСОЗ - публічна документація