MIS. Research patterns



    The last time it was described what basic entities are used to store medical data in the IIED Numede. Today we offer to plunge into the world of templates for research protocols.

    The study protocol is a document issued to the patient. What is a pattern? Beautiful pictures and colorful letters are only a facade, and the foundation is a structure stored in a database. By and large, you can choose any format for the description of abstract data, which would preserve the hierarchical structure. We stopped at XML.

    Templates are not static data that is entered into a table field once and forgotten. Over time, the pattern structure may change. For example, some measurements are missing, or, on the contrary, they are superfluous, and the doctor does not fill them in, putting dashes or leaving empty spaces. Another case of a change in structure is to extend the functionality of the template system or rethink old ones. Regardless of the reason for the changes, the old version of the template indicates the time until which it is valid, and for the new, in turn, from when it comes into effect. Thus, all the old protocols do not lose or acquire any parts, and remain in the form in which they were given to the patient.

    In general, the system uses more than 15 tags, and each has its own set of attributes. Using the basic tags described below, you can create a template for any study protocol.

    Template


    The root element within which the other tags are located. With the help of two attributes, it indicates the presence and location of the main image in the template:

    • image-id - identifier of the image lying in the storage;
    • image-position - image location. Options: none, top, left-top-corner, left-bottom-corner, left-top-corner-high. The default is none.

    Anatomy


    Used to display the essence of anatomy. Attributes:

    • id - the number of anatomy in the database;
    • font-size, font-bold, font-underline - font settings;
    • anatomy-name - allows you to override the name of the anatomy. By default, the name is taken from the database.

    Anatomy-comment


    Used to display the entity comment. Attributes:

    • comment-id - number of the comment in the database;
    • use-default is a flag indicating the need to automatically fill in the comment field with a standard template phrase marked as “default”. Options: true and false. The default is false;
    • comment-type - indicates the type of comment. Options: comment (comment), conclusions (complaint), complaint (complaint). The default is comment.

    Measure


    Used to display the entity dimension. Attributes:

    • id - number of measurement in the database;
    • max-width - the overall width of the element;
    • value-width - the width of the drop-down list for enumerated dimensions;
    • unit-width - the width of the units for numeric measurements;
    • measurement-name - allows you to override the name of the measurement, which by default is taken from the database;
    • need-points-to-end — indicates whether points are needed after the value of the enumeration dimension Options: true and false. The default is false;
    • empty-name - a flag that allows not to display the name of the measurement. Options: true and false. The default is false;
    • show-referent-interval - flag for displaying the reference interval. Options: true and false. The default is true.

    Conclusion label


    Used at the end of the template. As a result, a green line is added to the full width of the line and the word “Conclusion” displayed below it.

    All these tags can be found, for example, in the bladder ultrasound template:

    <template><anatomyid="119"font-size="10"font-bold="true"font-underline="false"comment="Мочевой пузырь" /><measurementid="663"comment="Толщина стенки мочевого пузыря" /><measurementid="664"comment="Объем мочевого пузыря на начало исследования" /><measurementid="665"comment="Объем мочевого пузыря после опорожнения(объем остаточной мочи)" /><anatomy-commentcomment-id="94"comment-type="comment" /><conclusion-labelspacing-before="HALF"/><anatomy-commentcomment-id="4"comment-type="conclusion" /></template>



    Text


    Designed to display plain text. Attributes:

    • text-label - the displayed text;
    • max-width - the width of the element;
    • font-size, font-bold, font-underline - font settings;
    • is-color-selection is highlighted in green. Options: true and false. The default is false.

    Measurement-group


    Used to display an entity group of dimensions. Inside this tag you can put the measurement and text tags . Attributes:

    • id - number of the measurement group in the database;
    • is-color-selection is highlighted in green. Options: true and false. The default is false;
    • multi-interval - used to display reference intervals, when 2 measurements with them are located in one line. Options: true and false. The default is false;
    • show-through-slash — show measurements through /. The options are true and false. The default is false.

    The tag can be used in two ways. The first way is to specify only the measurement-group tag with the necessary attributes. The system, for its part, will automatically add all measurements that belong to this group of measurements. For example, in the template ultrasound of the liver and gallbladder for the gallbladder states:

    <anatomyid="84"font-size="10"font-bold="true"font-underline="false"comment="Желчный пузырь"/><measurement-groupid="7"/><measurementid="429"comment="Толщина стенки"/><measurementid="430"comment="Диаметр общего желчного протока"/><anatomy-commentcomment-id="171"comment-type="comment"comment="Комментарий желчный"/>



    The second way is to specify a measurement-group tag with the necessary attributes and internally clarify some attributes of measurement tags or add a tag with text. For example, in the BCA ultrasound pattern, the following code is used to display information for the common carotid artery:

    Part of the BSA Ultrasound Template
    <linecomment="Правый-левый"><texttext-label=" " /><texttext-label="справа"max-width="197"is-color-selection="true" /><texttext-label="слева"max-width="197"is-color-selection="true" /></line><anatomyid="261"font-size="10"font-bold="true"font-underline="false"comment="Общая сонная артерия" /><measurement-groupid="11"multi-interval="true"comment="Общая сонная артерия: Скорость кровотока"><measurementid="609"unit-width="19"max-width="295"measurement-name="Скорость кровотока (Vps)"comment="справа" /><measurementid="606"unit-width="19"empty-name="true"comment="слева" /></measurement-group><measurement-groupid="12"multi-interval="true"comment="Общая сонная артерия: Диаметр артерии"><measurementid="610"unit-width="19"max-width="295"measurement-name="Диаметр артерии"comment="справа" /><measurementid="607"unit-width="19"empty-name="true"comment="слева" /></measurement-group>




    To render the right-to-left inscription, an already familiar text tag and a new line are used , which will be decoded below.

    In any rule, you can always find an exception. It also happened with blood pressure. This is exactly the group of measurements that defined the new way of displaying groups: the measurement values ​​are written through a slash, and the reference intervals are located next to each other:

    <measurementid="1577"max-width="247"need-points-to-end="false"measurement-name="Тоны сердца" /><measurement-groupid="81"show-through-slash="true"multi-interval="true"><measurementid="1581"unit-width="27"measurement-name="Артериальное давление"comment="Систолическое артериальное давление" /><measurementid="1582"unit-width="27"max-width="190"empty-name="true"comment="Диастолическое артериальное давление" /></measurement-group><measurementid="1621"comment="Частота пульса" />



    Line


    All elements inside this tag are located in one line. The main difference of the line tag from the measurement-group is that the line visually combines data unrelated to each other. Inside there may be anatomy , measurement and text tags . The tag uses the is-color-selection and multi-interval attributes, the behavior of which corresponds to the similar attributes in the measurement-group .

    For example, the following measurements can be found in the brain CT scan pattern:

    Part of the brain CT pattern
    <line><measurementid="2801"measurement-name="Боковой желудочек правый" /><measurementid="2782"measurement-name="Боковой желудочек левый" /><measurementid="2781"max-width="145"measurement-name="Расположение"comment="Расположение боковых желудочков"/></line><line><measurementid="2762"measurement-name="Третий желудочек" /><measurementid="2763"measurement-name="Четвертый желудочек" /><measurementid="2764"max-width="145"measurement-name="Турецкое седло" /></line><line><measurementid="2743"measurement-name="Супраселлярная цистерна" /><textmax-width="247"text-label=" " /></line><line><measurementid="2803"max-width="169"measurement-name="Мозжечок" /><measurementid="2767"value-width="148"comment="Расположение миндалин мозжечка"/></line><line><measurementid="2821"measurement-name="Придаточные пазухи носа" /><measurementid="2841"measurement-name="Пирамиды височных костей" /></line>




    Well, there are still a few tags, but let's move on to the lyrics, and then to the dry description of the remaining "good."

    Each template is tied to a specific price (service). All prices, in turn, are distributed between price groups. The latter are already included in any modalities. For example:

    • cervical spine (service) - neck (price group) - magnetic resonance imaging [MRI] (modality);
    • cervical spine (service) - neck (price group) - computed tomography [CT] (modality);
    • Consultation of a general practitioner (service) - therapy (price group) - consultation and manipulation [CM] (modality);
    • kidneys and adrenal glands (service) - abdominal cavity (price group) - ultrasound [ultrasound] (modality).

    If we consider the price in more detail, then it is possible to distinguish the following types for it:

    • main;
    • additional;
    • analysis.

    Additional services and analyzes are always associated with the main ones and cannot be paid for and performed separately from them. In general, the introduction of additional services within the framework of the basic service not only increases the amount of information obtained during the survey (relevant for research conducted on various equipment), but also makes it easy to introduce into the IIA the concept of primary and repeated visits by a specialist doctor.

    Consider a reception to the therapist. If we translate the idea of ​​the primary reception into the language of prices, we get that this reception consists of the prices of consultation of the general practitioner (basic price) and examination of the general practitioner (add. Price). In the meantime, the second reception is only a price consultation. Similarly for other professionals. This approach of dividing the reception into two separate price lists allows the patient to issue a conclusion with only the necessary information.

    When generating the study protocol, the current version of the template is taken into account, which is tied to the current main price list. If the patient pays, for example, the service "ultrasound scan of the pancreas" or "consultation of the general practitioner", then there are no questions when it is displayed to the doctor. But what to do if not only the consultation of the general practitioner is paid, but also an examination? How to add a template that is tied to a doctor's examination?

    The display of a research protocol for laboratory diagnostics (LD), which uses a different approach from additional price lists, is no less interesting. That is why a separate type of price list was selected for analysis. Each main LD price list (a smear / scraping test, a urine test, etc.) in this case serves to combine several price lists with the “analysis” type belonging to different price groups into a single whole. As a result, only one study protocol is issued for each main price list, regardless of the number of paid analyzes. If, for example, several blood tests were ordered (the main price is a blood test) and a urological smear (the main price is a smear / scraping test), two conclusions will be issued.

    We should not forget that some places in different templates can be duplicated, or the template is banally very large and difficult to navigate. For example, a set of measurements for the right and left tonsils are found in examinations by a general practitioner, an endocrinologist, a pulmonologist, and so on.

    Thus, it is necessary, firstly, to separate the XML code fragment into a separate template and then add it. in a special place, and, secondly, in attaching to the main template of templates paid additional prices or analyzes. For these tasks, we need the remaining three tags.

    Surely the question arose: why use some special tags when you can simply add one template to the end of another, while receiving a kind of locomotive with carriages? Yes, there is such a way. However, the template system must be flexible and be able to insert different templates in the place that we need, while observing a certain order.

    Template builder


    Used as a link to another template. The id attribute indicates the number of the template to be inserted.

    As an example, we give the patterns of the right and left tonsils, which are used in the pattern of examination of specialists.

    Right tonsil pattern
    <template><line><anatomyid="524"font-size="10"font-bold="true"font-underline="false"comment="Правая миндалина" /><measurementid="1542"max-width="112"empty-name="true"comment="окраска Правая миндалина" /><measurementid="1543"max-width="161"empty-name="true"comment="размеры Правая миндалина" /></line><line><measurementid="1550"measurement-name="Структура"comment="структура правой миндалины" /><measurementid="1551"measurement-name="Поверхность"comment="поверхность правой миндалины" /><measurementid="1552"measurement-name="Лакуны"comment="лакуны правой миндалины" /></line></template>


    Pattern of the left tonsil
    <template><line><anatomyid="525"font-size="10"font-bold="true"font-underline="false"comment="левая миндалина" /><measurementid="1554"max-width="112"empty-name="true"comment="окраска левой миндалины" /><measurementid="1555"max-width="161"empty-name="true"comment="размеры левой миндалины" /></line><line><measurementid="1556"measurement-name="Структура"comment="структура левой миндалины" /><measurementid="1557"measurement-name="Поверхность"comment="поверхность левой миндалины" /><measurementid="1558"measurement-name="Лакуны"comment="лакуны левой миндалины" /></line></template>


    The part of the specialist's inspection template, where the template with the number 516 is for the right tonsil and 517 is for the left tonsil:

    <template-builderid="516"/><anatomy-commentcomment-id="372"comment-type="comment"comment="Комментарий к правой миндалине" /><template-builderid="517"/><anatomy-commentcomment-id="373"comment-type="comment"comment="Комментарий к левой миндалине" />



    Price-template-builder


    Indicates the insertion of a template, the presence of which depends on the payment. For example, a medical examination, various tests. It contains only one id attribute , where the number of the template is written.

    Therapist consultation template:

    <template><price-template-builderid="336"/><anatomy-commentcomment-id="370"comment-type="comment"comment="Комментарий для тела" /><conclusion-labelspacing-before="HALF"/><anatomy-commentcomment-id="371"comment-type="conclusion"comment="Заключение для тела" /></template>



    Therapist Examination Template
    <template><anatomy-commentcomment-id="358"comment-type="complaint"comment="Комментарий жалобы" /><measurementid="8541"comment="Температура тела" /><line><measurementid="1521"measurement-name="Зев"comment="состояние Зева" /><measurementid="1559"measurement-name="Язык"comment="состояние языка" /><measurementid="1560"empty-name="true"comment="влажность языка" /></line><template-builderid="516"/><anatomy-commentcomment-id="372"comment-type="comment"comment="Комментарий к правой миндалине" /><template-builderid="517"/><anatomy-commentcomment-id="373"comment-type="comment"comment="Комментарий к левой миндалине" /><line><measurementid="1181"comment="Кожные покровы" /><measurementid="1182"measurement-name="Живот"comment="состояние живота" /><measurementid="1183"empty-name="true"comment="болезненность живота" /></line><line><measurementid="1561"max-width="247"measurement-name="Печень"comment="пальпация печени" /><measurementid="1562"measurement-name="Край печени"comment="пальпация края печени" /><measurementid="1563"max-width="70"empty-name="true"comment="болезненность края печени" /></line><line><measurementid="1564"measurement-name="Правая почка"comment="пальпация правой почки" /><measurementid="1565"empty-name="true"comment="болезненность правой почки" /><measurementid="1566"empty-name="true"comment="симптом Пастернацкого правой почки" /></line><line><measurementid="1567"measurement-name="Левая почка"comment="пальпация левой почки" /><measurementid="1568"empty-name="true"comment="болезненность левой почки" /><measurementid="1569"empty-name="true"comment="симптом Пастернацкого левой почки" /></line><line><measurementid="1570"measurement-name="Лимфатические узлы"comment="состояние Лимфатические узлы" /><measurementid="1571"empty-name="true"comment="болезненность Лимфатические узлы" /><measurementid="1572"comment="Суставы"/></line><measurementid="1153"max-width="247"need-points-to-end="false"comment="Расположение молочных желез"/><line><measurementid="1573"measurement-name="Дыхание в легких"  /><measurementid="1574"comment="Перкуторный звук в легких" /></line><measurementid="1575"comment="Частота дыхания" /><measurementid="1576"comment="Скорость выдыхаемого воздуха" /><measurementid="1577"max-width="247"need-points-to-end="false"measurement-name="Тоны сердца" /><measurement-groupid="81"show-through-slash="true"multi-interval="true"is-color-selection="false"><measurementid="1581"unit-width="27"measurement-name="Артериальное давление"comment="Систолическое артериальное давление" /><measurementid="1582"unit-width="27"max-width="190"empty-name="true"comment="Диастолическое артериальное давление" /></measurement-group><line><measurementid="1578"measurement-name="Пульс"comment="ритмичность пульса" /><measurementid="1579"empty-name="true"comment="наполнение пульса" /><measurementid="1580"empty-name="true"comment="напряжение пульса" /></line><measurementid="1621"comment="Частота пульса" /><measurementid="1583"comment="Степень насыщения крови кислородом" /><measurementid="1587"comment="Глюкоза (глюкометрия)" /><line><measurementid="1584"max-width="247"comment="Характер стула" /><measurementid="1585"comment="Характер мочеиспускания" /><measurementid="1586"max-width="70"empty-name="true"comment="болезненность мочеиспускания" /></line></template>




    Price-group


    Used to display the price group in the analysis templates. May contain a price-template-builder tag . Attributes:

    • id - number of the price group from the database;
    • bgcolor - background color;
    • fgcolor - text color.

    Consider the blood test protocol for paid prices, lipid status, aspartate aminotransferase (AsAT), alanine aminotransferase (AlAT), total testosterone, estradiol, prolactin, somatotropic hormone (STH).

    Part of the blood test pattern
    <template><price-groupid="9"bgcolor="#E18C8E"fgcolor="#FFFFFF"><price-template-builderid="368"/><price-template-builderid="369"/><price-template-builderid="370"/><price-template-builderid="371"/><price-template-builderid="372"/><price-template-builderid="373"/><price-template-builderid="374"/><price-template-builderid="375"/><price-template-builderid="379"/></price-group><price-groupid="10"bgcolor="#E18C8E"fgcolor="#FFFFFF"><price-template-builderid="380"/><price-template-builderid="381"/><price-template-builderid="382"/><price-template-builderid="383"/><price-template-builderid="384"/><price-template-builderid="385"/><price-template-builderid="716"/><price-template-builderid="717"/></price-group><price-groupid="17"bgcolor="#E18C8E"fgcolor="#FFFFFF"><price-template-builderid="425"/><price-template-builderid="426"/><price-template-builderid="427"/><price-template-builderid="428"/><price-template-builderid="429"/><price-template-builderid="430"/><price-template-builderid="431"/><price-template-builderid="432"/></price-group><price-groupid="31"bgcolor="#E18C8E"fgcolor="#FFFFFF"><price-template-builderid="445"/><price-template-builderid="446"/></price-group><anatomy-commentcomment-id="6"/></template>


    Template for lipid status (number in the database - 379):

    <template><measurementid="36"comment="Триглицериды"/><measurementid="37"comment="Холестерин общий"/><measurementid="38"comment="Холестерин липопротеинов высокой плотности (ЛПВП)"/><measurementid="39"comment="Холестерин липопротеинов низкой плотности (ЛПНП)"/><measurementid="40"comment="Холестерин липопротеинов очень низкой плотности (ЛПО"/><measurementid="41"comment="Индекс атерогенности"/></template>

    Template for alanine aminotransferase (AlAT) (number in the database - 381):

    <template><measurementid="43"comment="Аланинаминотрансфераза (АлАТ)"/></template>



    The system has a couple of attributes that can be found in all tags:

    • comment - ignored by the system and acts as a tag for the developer;
    • spacing-before - additional distance between lines. Options: NONE, HALF, FULL. The default is NONE;
    • is-short - indicates the type of string: normal (false) or short (true). The default is false.

    Using the is-short attribute, you can make a study protocol, where the main picture is on the left, and various measurements and groups of measurements are on the right. One of these conclusions is an ultrasound scan of the thyroid gland, a template of which is given below:

    Thyroid Ultrasound Template
    <templateimage-id="5"need-warning="true"image-position="left-top-corner"><anatomyid="22"font-size="10"font-bold="true"font-underline="false"is-short="true"comment="Щитовидная железа"/><lineis-short="true"spacing-before="HALF"><measurementid="310"max-width="156"comment="Эхоструктура"/><measurementid="341"max-width="156"comment="Эхогенность"/></line><lineis-short="true"><measurementid="308"max-width="156"comment="Расположение"/><measurementid="342"max-width="156"comment="Контуры"/></line><template-builderid="253"is-short="true"/><template-builderid="254"is-short="true"/><measurementid="307"is-short="true"measurement-name="Толщина перешейка"spacing-before="HALF" /><measurementid="309"measurement-name="Объем долей щитовидной железы" /><anatomy-commentcomment-id="9"comment-type="comment"spacing-before="HALF" /><conclusion-labelspacing-before="HALF"/><anatomy-commentcomment-id="8"comment-type="conclusion" /></template>


    Template right share:

    <template><anatomyid="24"font-size="10"font-bold="true"font-underline="false"spacing-before="HALF"is-short="true"comment="Правая доля"/><measurement-groupid="2"is-color-selection="true"is-short="true"/></template>

    Pattern left lobe:

    <template><anatomyid="23"font-size="10"font-bold="true"font-underline="false"spacing-before="HALF"is-short="true"comment="Левая доля"/><measurement-groupid="1"is-color-selection="true"is-short="true"/></template>



    We have already mentioned that various metamorphoses occur with a person during the course of life. The remaining tags are intended to describe them, and they will be considered next time.

    Also popular now: