{"id":281710,"date":"2016-11-29T12:15:04","date_gmt":"2016-11-29T09:15:04","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=281710"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=281710","title":{"rendered":"\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0445 REST-\u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u043d\u0430 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e-\u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0411\u0414 Bagri"},"content":{"rendered":"<p>\u041d\u0435 \u0442\u0430\u043a \u0434\u0430\u0432\u043d\u043e, \u043f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u044f \u043b\u0435\u043d\u0442\u0443 CNews, \u043d\u0430\u0442\u043a\u043d\u0443\u043b\u0441\u044f \u043d\u0430 \u0430\u043d\u043e\u043d\u0441 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438 \u201c<a href=\"http:\/\/events.cnews.ru\/events\/it_v_zdravoohranenii__v_ojidanii_proryva.shtml\">\u0418\u0422 \u0432 \u0437\u0434\u0440\u0430\u0432\u043e\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0438: \u0432 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u0438 \u043f\u0440\u043e\u0440\u044b\u0432\u0430<\/a>\u201d. \u041e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u201c\u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 2011 \u0433. \u0432 \u0420\u043e\u0441\u0441\u0438\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442\u0441\u044f \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u043d\u044b\u0439 \u0433\u043e\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u043f\u043e \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u044e \u0415\u0434\u0438\u043d\u043e\u0439 \u0433\u043e\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0432 \u0441\u0444\u0435\u0440\u0435 \u0437\u0434\u0440\u0430\u0432\u043e\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f (\u0415\u0413\u0418\u0421\u0417)\u201d. \u0423\u0433\u043b\u0443\u0431\u0438\u0432\u0448\u0438\u0441\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0432 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b, \u0447\u0442\u043e \u0415\u0413\u0418\u0417\u0421 \u0431\u0430\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043d\u0430 \u0448\u0438\u0440\u043e\u043a\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u043d\u0430 \u0437\u0430\u043f\u0430\u0434\u0435 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0430\u0445 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 <a href=\"http:\/\/www.hl7.org\/index.cfm\">Health Language 7<\/a> (\u0434\u0430\u043b\u0435\u0435 HL7). \u0410 \u0432 \u043e\u0441\u043d\u043e\u0432\u0435 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043e\u0432 HL7 \u043b\u0435\u0436\u0438\u0442 XML. \u041f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0449\u0435\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b HL7, \u043d\u0430 <a href=\"http:\/\/bagridb.com\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043d\u043e\u0439 \u0411\u0414 Bagri<\/a> \u0438, \u0435\u0441\u043b\u0438 \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f \u0432\u044b\u0439\u0434\u0435\u0442 \u0443\u0434\u0430\u0447\u043d\u044b\u043c, \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u0434\u043e\u043a\u043b\u0430\u0434 \u043e \u043d\u0435\u043c \u043d\u0430 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u044e.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/f11\/0ab\/699\/f110ab699fe5481eb3a77f8462ee203a.jpg\" alt=\"image\"\/><\/p>\n<p>  <a name=\"habracut\"><\/a><br \/>  \u041f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043d\u0430 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0443\u0439\u0442\u0438 \u0432 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 HL7. \u041f\u043e\u0442\u043e\u043c, \u043a\u0441\u0442\u0430\u0442\u0438, \u0438 \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u043d\u0435\u043f\u043b\u043e\u0445\u043e\u0439 \u0446\u0438\u043a\u043b \u0441\u0442\u0430\u0442\u0435\u0439 \u043e\u0431 \u044d\u0442\u043e\u0439 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 \u043e\u0442 <a href=\"https:\/\/habrahabr.ru\/users\/wayfarer15\/\" class=\"user_link\">Wayfarer15<\/a>. \u041f\u043e\u043f\u0443\u0442\u043d\u043e \u0432\u044b\u044f\u0441\u043d\u0438\u043b, \u0447\u0442\u043e \u0441\u0430\u043c\u044b\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u043c \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c\u044b\u043c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043e\u043c \u0432 \u044d\u0442\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f <a href=\"http:\/\/fhir-ru.github.io\/overview-dev.html\">Fast Healthcare Interoperability Resources<\/a> (\u0434\u0430\u043b\u0435\u0435 FHIR). \u0412 \u043e\u0441\u043d\u043e\u0432\u0435 FHIR \u043b\u0435\u0436\u0438\u0442 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f REST \u0438 \u043e\u0431\u043c\u0435\u043d XML\/JSON \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u0447\u0435\u0440\u0435\u0437 REST \u0440\u0435\u0441\u0443\u0440\u0441\u044b.<\/p>\n<p>  \u041a\u0430\u043a \u044d\u0442\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u043e \u043a Bagri? \u041e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0432\u043f\u043e\u043b\u043d\u0435: \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0441 \u043c\u0435\u0441\u044f\u0446 \u043d\u0430\u0437\u0430\u0434 \u0432 Bagri \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0430\u0441\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 REST, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 REST \u0432 \u043c\u043e\u0434\u0443\u043b\u044f\u0445 XQuery \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0439 <a href=\"http:\/\/exquery.github.io\/exquery\/exquery-restxq-specification\/restxq-1.0-specification.html\">RESTXQ<\/a>. \u0422.\u0435. \u043b\u044e\u0431\u043e\u0439 \u0440\u0435\u0441\u0443\u0440\u0441 FHIR \u043c\u043e\u0436\u043d\u043e \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0438 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c, \u0434\u0430\u0436\u0435 \u0431\u0435\u0437 \u0440\u0435\u0441\u0442\u0430\u0440\u0442\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 Bagri. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c?<\/p>\n<h4>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f FHIR-\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0437\u0430 45 \u043c\u0438\u043d\u0443\u0442..<\/h4>\n<p>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f:<\/p>\n<ul>\n<li>\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0432\u0435\u0440\u0441\u0438\u044f Bagri, \u0440\u0430\u0437\u0432\u0451\u0440\u043d\u0443\u0442\u0430\u044f \u043d\u0430 \u0432\u0430\u0448\u0435\u043c \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435, \u0435\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c <a href=\"https:\/\/github.com\/dsukhoroslov\/bagri\/releases\">\u0437\u0434\u0435\u0441\u044c<\/a>;<\/li>\n<li>\u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0434\u0430\u043d\u043d\u044b\u0445 FHIR, \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043f\u043e \u0434\u0430\u043d\u043d\u043e\u0439 <a href=\"http:\/\/hl7.org\/fhir\/downloads.html\">\u0441\u0441\u044b\u043b\u043a\u0435<\/a>;<\/li>\n<li>\u0431\u0430\u0437\u043e\u0432\u044b\u0435 \u0437\u043d\u0430\u043d\u0438\u044f \u044f\u0437\u044b\u043a\u0430 XQuery, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043d\u0430\u0448 \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f:<\/li>\n<\/ul>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u043e\u0432\u0443\u044e \u0441\u0445\u0435\u043c\u0443 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 Bagri (&lt;bagri_home&gt;\/config\/config.xml), \u043d\u0430\u0437\u043e\u0432\u0451\u043c \u0435\u0451 FHIR. <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u0445\u0435\u043c\u0430 FHIR \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u0411\u0430\u0433\u0440\u0438<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">&lt;schema name=&quot;FHIR&quot; active=&quot;true&quot;&gt;         &lt;version&gt;1&lt;\/version&gt;         &lt;createdAt&gt;2016-11-09T23:14:40.096+03:00&lt;\/createdAt&gt;         &lt;createdBy&gt;admin&lt;\/createdBy&gt;         &lt;description&gt;FHIR: schema for FHIR XML demo&lt;\/description&gt;         &lt;properties&gt;             &lt;!-- \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u043f\u043e\u0440\u0442\u043e\u0432 \u0434\u043b\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0441\u0445\u0435\u043c\u044b --&gt;             &lt;entry name=&quot;xdm.schema.ports.first&quot;&gt;11000&lt;\/entry&gt;             &lt;entry name=&quot;xdm.schema.ports.last&quot;&gt;11100&lt;\/entry&gt;             &lt;entry name=&quot;xdm.schema.members&quot;&gt;localhost&lt;\/entry&gt;             &lt;entry name=&quot;xdm.schema.thread.pool&quot;&gt;16&lt;\/entry&gt;             &lt;entry name=&quot;xdm.schema.query.cache&quot;&gt;true&lt;\/entry&gt;             &lt;!-- \u043f\u0443\u0442\u044c \u043a \u0434\u0430\u043d\u043d\u044b\u043c \u0441\u0445\u0435\u043c\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432 \u0444\u0430\u0439\u043b\u0430\u0445 XML --&gt;             &lt;entry name=&quot;xdm.schema.store.data.path&quot;&gt;..\/data\/fhir\/xml&lt;\/entry&gt;             &lt;entry name=&quot;xdm.schema.store.type&quot;&gt;File&lt;\/entry&gt;             &lt;entry name=&quot;xdm.schema.format.default&quot;&gt;XML&lt;\/entry&gt;             &lt;entry name=&quot;xdm.schema.partition.count&quot;&gt;271&lt;\/entry&gt;             &lt;entry name=&quot;xdm.schema.population.size&quot;&gt;1&lt;\/entry&gt;             &lt;entry name=&quot;xdm.schema.buffer.size&quot;&gt;64&lt;\/entry&gt;             &lt;entry name=&quot;xdm.schema.store.enabled&quot;&gt;true&lt;\/entry&gt;             &lt;entry name=&quot;xdm.schema.data.cache&quot;&gt;NEVER&lt;\/entry&gt;             &lt;entry name=&quot;xdm.schema.data.stats.enabled&quot;&gt;true&lt;\/entry&gt;             &lt;entry name=&quot;xdm.schema.trans.backup.async&quot;&gt;0&lt;\/entry&gt;             &lt;entry name=&quot;xdm.schema.trans.backup.sync&quot;&gt;1&lt;\/entry&gt;             &lt;entry name=&quot;xdm.schema.trans.backup.read&quot;&gt;false&lt;\/entry&gt;             &lt;entry name=&quot;xdm.schema.data.backup.read&quot;&gt;false&lt;\/entry&gt;             &lt;entry name=&quot;xdm.schema.data.backup.async&quot;&gt;1&lt;\/entry&gt;             &lt;entry name=&quot;xdm.schema.data.backup.sync&quot;&gt;0&lt;\/entry&gt;             &lt;entry name=&quot;xdm.schema.dict.backup.sync&quot;&gt;0&lt;\/entry&gt;             &lt;entry name=&quot;xdm.schema.dict.backup.async&quot;&gt;1&lt;\/entry&gt;             &lt;entry name=&quot;xdm.schema.dict.backup.read&quot;&gt;true&lt;\/entry&gt;             &lt;entry name=&quot;xdm.schema.query.backup.async&quot;&gt;0&lt;\/entry&gt;             &lt;entry name=&quot;xdm.schema.query.backup.sync&quot;&gt;0&lt;\/entry&gt;             &lt;entry name=&quot;xdm.schema.query.backup.read&quot;&gt;true&lt;\/entry&gt;             &lt;entry name=&quot;xdm.schema.transaction.timeout&quot;&gt;60000&lt;\/entry&gt;             &lt;entry name=&quot;xdm.schema.health.threshold.low&quot;&gt;25&lt;\/entry&gt;             &lt;entry name=&quot;xdm.schema.health.threshold.high&quot;&gt;0&lt;\/entry&gt;             &lt;entry name=&quot;xdm.schema.store.tx.buffer.size&quot;&gt;2048&lt;\/entry&gt;             &lt;entry name=&quot;xdm.schema.population.buffer.size&quot;&gt;1000000&lt;\/entry&gt;             &lt;entry name=&quot;xdm.schema.query.parallel&quot;&gt;true&lt;\/entry&gt;             &lt;entry name=&quot;xdm.schema.partition.pool&quot;&gt;32&lt;\/entry&gt;             &lt;entry name=&quot;xqj.schema.baseUri&quot;&gt;file:\/..\/data\/fhir\/xml\/&lt;\/entry&gt;             &lt;entry name=&quot;xqj.schema.orderingMode&quot;&gt;2&lt;\/entry&gt;             &lt;entry name=&quot;xqj.schema.queryLanguageTypeAndVersion&quot;&gt;1&lt;\/entry&gt;             &lt;entry name=&quot;xqj.schema.bindingMode&quot;&gt;0&lt;\/entry&gt;             &lt;entry name=&quot;xqj.schema.boundarySpacePolicy&quot;&gt;1&lt;\/entry&gt;             &lt;entry name=&quot;xqj.schema.scrollability&quot;&gt;1&lt;\/entry&gt;             &lt;entry name=&quot;xqj.schema.holdability&quot;&gt;2&lt;\/entry&gt;             &lt;entry name=&quot;xqj.schema.copyNamespacesModePreserve&quot;&gt;1&lt;\/entry&gt;             &lt;entry name=&quot;xqj.schema.queryTimeout&quot;&gt;0&lt;\/entry&gt;             &lt;entry name=&quot;xqj.schema.defaultFunctionNamespace&quot;&gt;http:\/\/www.w3.org\/2005\/xpath-functions&lt;\/entry&gt;             &lt;entry name=&quot;xqj.schema.defaultElementTypeNamespace&quot;&gt;http:\/\/www.w3.org\/2001\/XMLSchema&lt;\/entry&gt;             &lt;entry name=&quot;xqj.schema.copyNamespacesModeInherit&quot;&gt;1&lt;\/entry&gt;             &lt;entry name=&quot;xqj.schema.defaultOrderForEmptySequences&quot;&gt;2&lt;\/entry&gt;             &lt;entry name=&quot;xqj.schema.defaultCollationUri&quot;&gt;http:\/\/www.w3.org\/2005\/xpath-functions\/collation\/codepoint&lt;\/entry&gt;             &lt;entry name=&quot;xqj.schema.constructionMode&quot;&gt;1&lt;\/entry&gt;         &lt;\/properties&gt;         &lt;!-- \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0442\u0438\u043f\u0430 Patient --&gt;         &lt;collections&gt;             &lt;collection id=&quot;1&quot; name=&quot;Patients&quot;&gt;                 &lt;version&gt;1&lt;\/version&gt;                 &lt;createdAt&gt;2016-11-09T23:14:40.096+03:00&lt;\/createdAt&gt;                 &lt;createdBy&gt;admin&lt;\/createdBy&gt;                 &lt;docType&gt;\/{http:\/\/hl7.org\/fhir}Patient&lt;\/docType&gt;                 &lt;description&gt;All patient documents&lt;\/description&gt;                 &lt;enabled&gt;true&lt;\/enabled&gt;             &lt;\/collection&gt;         &lt;\/collections&gt;         &lt;fragments\/&gt;         &lt;!-- \u0438\u043d\u0434\u0435\u043a\u0441 \u043f\u043e \u043f\u0443\u0442\u0438 \/Patient\/id\/@value \u0434\u043b\u044f \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u043f\u043e id \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430 --&gt;         &lt;indexes&gt;             &lt;index name=&quot;idx_patient_id&quot;&gt;                 &lt;version&gt;1&lt;\/version&gt;                 &lt;createdAt&gt;2016-11-09T23:14:40.096+03:00&lt;\/createdAt&gt;                 &lt;createdBy&gt;admin&lt;\/createdBy&gt;                 &lt;docType&gt;\/{http:\/\/hl7.org\/fhir}Patient&lt;\/docType&gt;                 &lt;path&gt;\/{http:\/\/hl7.org\/fhir}Patient\/{http:\/\/hl7.org\/fhir}id\/@value&lt;\/path&gt;                 &lt;dataType xmlns:xs=&quot;http:\/\/www.w3.org\/2001\/XMLSchema&quot;&gt;xs:string&lt;\/dataType&gt;                 &lt;caseSensitive&gt;true&lt;\/caseSensitive&gt;                 &lt;range&gt;false&lt;\/range&gt;                 &lt;unique&gt;true&lt;\/unique&gt;                 &lt;description&gt;Patient id&lt;\/description&gt;                 &lt;enabled&gt;true&lt;\/enabled&gt;             &lt;\/index&gt;         &lt;\/indexes&gt;         &lt;resources&gt;             &lt;!-- \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u0440\u0435\u0441\u0443\u0440\u0441, \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0439 \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0435, \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043f\u043e \u0431\u0430\u0437\u043e\u0432\u043e\u043c\u0443 \u0430\u0434\u0440\u0435\u0441\u0443 http:\/\/localhost:3030\/ --&gt;             &lt;resource name=&quot;common&quot;&gt;                 &lt;version&gt;1&lt;\/version&gt;                 &lt;createdAt&gt;2016-11-09T23:14:40.096+03:00&lt;\/createdAt&gt;                 &lt;createdBy&gt;admin&lt;\/createdBy&gt;                 &lt;path&gt;\/&lt;\/path&gt;                 &lt;module&gt;common_module&lt;\/module&gt;                 &lt;description&gt;FHIR Conformance resource exposed via REST&lt;\/description&gt;                 &lt;enabled&gt;true&lt;\/enabled&gt;             &lt;\/resource&gt;             &lt;!-- \u0440\u0435\u0441\u0443\u0440\u0441 \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u043e\u0432, \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 http:\/\/localhost:3030\/Patient --&gt;             &lt;resource name=&quot;patient&quot;&gt;                 &lt;version&gt;1&lt;\/version&gt;                 &lt;createdAt&gt;2016-11-09T23:14:40.096+03:00&lt;\/createdAt&gt;                 &lt;createdBy&gt;admin&lt;\/createdBy&gt;                 &lt;path&gt;\/Patient&lt;\/path&gt;                 &lt;module&gt;patient_module&lt;\/module&gt;                 &lt;description&gt;FHIR Patient resource exposed via REST&lt;\/description&gt;                 &lt;enabled&gt;true&lt;\/enabled&gt;             &lt;\/resource&gt;         &lt;\/resources&gt;         &lt;triggers\/&gt;     &lt;\/schema&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0440\u0430\u0441\u043f\u0430\u043a\u0443\u0435\u043c \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0434\u0438\u0441\u043a \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e &lt;bagri_home&gt;\/data\/fhir\/xml. \u041f\u0440\u043e \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 JSON \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u0432 Bagri \u044f \u043f\u0438\u0441\u0430\u043b \u0432 <a href=\"https:\/\/habrahabr.ru\/post\/312626\/\">\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/a>, \u0442\u0430\u043a \u0447\u0442\u043e \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0434\u043b\u044f \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0438 \u043c\u0435\u0441\u0442\u0430 \u044f \u043f\u043e\u043a\u0430\u0436\u0443 \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 XML.<\/p>\n<p>  \u041d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f FHIR \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u043b\u0430 110 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432, \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c. \u0427\u0430\u0441\u0442\u044c \u0438\u0437 \u043d\u0438\u0445 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u043c\u0438 \u0438 \u0441\u043b\u0443\u0436\u0438\u0442 \u0434\u043b\u044f \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0441\u0430\u043c\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435, \u0430 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u2014 \u044d\u0442\u043e \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u043d\u044b\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u043c\u0435\u0434\u0438\u0446\u0438\u043d\u0441\u043a\u0438\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438. \u0421\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0439 \u0440\u0435\u0441\u0443\u0440\u0441 <a href=\"http:\/\/fhir-ru.github.io\/conformance.html\">Conformance<\/a> \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0434\u043b\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0438 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u041d\u0430\u043b\u0438\u0447\u0438\u0435 \u0438\u043b\u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0438 \u0438\u0445 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u0435\u043c, \u0447\u0442\u043e \u043c\u044b \u0437\u0430\u0434\u0435\u043a\u043b\u0430\u0440\u0438\u0440\u0443\u0435\u043c \u0432 Conformance.<\/p>\n<p>  \u041f\u0440\u0438\u043a\u043b\u0430\u0434\u043d\u044b\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b, \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 FHIR, \u043c\u043e\u0433\u0443\u0442 \u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u044b:<\/p>\n<p>  \u041e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432:<\/p>\n<ul>\n<li> <b>read<\/b> \u2014 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u043c \u0440\u0435\u0441\u0443\u0440\u0441\u0430<\/li>\n<li><b>vread<\/b> \u2014 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430<\/li>\n<li><b>update<\/b> \u2014 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430<\/li>\n<li><b>delete<\/b> \u2014 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430<\/li>\n<li><b>history<\/b> \u2014 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430<\/li>\n<\/ul>\n<p>  \u041e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0442\u0438\u043f\u0430 \u0440\u0435\u0441\u0443\u0440\u0441\u0430:<\/p>\n<ul>\n<li> <b>create<\/b> \u2014 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043d\u043e\u0432\u043e\u0433\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430<\/li>\n<li><b>search<\/b> \u2014 \u043f\u043e\u0438\u0441\u043a \u0441\u0440\u0435\u0434\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u043e\u0434\u043d\u043e\u0433\u043e \u0442\u0438\u043f\u0430 \u043f\u043e \u0440\u0430\u0437\u043d\u044b\u043c \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u044f\u043c<\/li>\n<li><b>history<\/b> \u2014 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439 \u043f\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c\u0443 \u0442\u0438\u043f\u0443 \u0440\u0435\u0441\u0443\u0440\u0441\u0430<\/li>\n<\/ul>\n<p>  \u0412 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0446\u0435\u043b\u044f\u0445 \u043c\u044b \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c 2 \u0440\u0435\u0441\u0443\u0440\u0441\u0430: \u0443\u0436\u0435 \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0439 Conformance \u0438 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u043d\u043e\u0439 \u0440\u0435\u0441\u0443\u0440\u0441 <a href=\"http:\/\/fhir-ru.github.io\/patient.html\">Patient<\/a>. Conformance \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442, \u043a\u0430\u043a\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c \u0440\u0435\u0441\u0443\u0440\u0441\u0430 Patient.<\/p>\n<p>  <i>\u041d\u0438\u0436\u0435 \u043f\u043e \u0442\u0435\u043a\u0441\u0442\u0443 \u0431\u0443\u0434\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u0441\u043c\u0430\u0439\u043b\u0438\u043a\u043e\u0432. \u041d\u0435 \u043f\u0443\u0433\u0430\u0439\u0442\u0435\u0441\u044c, \u044d\u0442\u043e \u0438\u0437\u0434\u0435\u0440\u0436\u043a\u0438 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0430 XQuery :). <\/i><\/p>\n<p>  \u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f Conformance \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e: c\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u043e\u0432\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c XQuery &lt;bagri_home&gt;\/data\/fhir\/common_module.xq. \u0412 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435 \u043e\u0431\u044a\u044f\u0432\u0438\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u044f\u0437\u044b\u043a\u0430, \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e \u0438\u043c\u0435\u043d \u043c\u043e\u0434\u0443\u043b\u044f \u0438 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430 \u0438\u043c\u0435\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u0441\u0445\u0435\u043c:<\/p>\n<pre><code>xquery version &quot;3.1&quot;; module namespace conf = &quot;http:\/\/hl7.org\/fhir&quot;;  declare namespace rest = &quot;http:\/\/www.expath.org\/restxq&quot;; <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0414\u0430\u043b\u0435\u0435 \u0438\u0434\u0435\u0442 \u043a\u043e\u0434 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0449\u0435\u0439 \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u043e\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u0430:<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code>declare    %rest:GET  (: \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043c\u0435\u0442\u043e\u0434 HTTP, \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0435\u0441\u0443\u0440\u0441 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d :)   %rest:path(&quot;\/metadata&quot;)  (: \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043f\u0443\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0440\u0435\u0441\u0443\u0440\u0441\u0443, \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0431\u0430\u0437\u043e\u0432\u043e\u0433\u043e URL:)   %rest:produces(&quot;application\/fhir+xml&quot;)  (: \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 XML :)   %rest:query-param(&quot;_format&quot;, &quot;{$format}&quot;)  (: \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u043e\u0434\u0438\u043d \u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 _format :) function conf:get-conformance($format as xs:string?) as item() {   if (exists($format) and not ($format = (&quot;application\/xml&quot;, &quot;application\/fhir+xml&quot;))) then      &quot;The endpoint produce response in application\/fhir+xml format, but [&quot; || $format || &quot;] specified&quot;   else   &lt;CapabilityStatement xmlns=&quot;http:\/\/hl7.org\/fhir&quot;&gt;     &lt;id value=&quot;FhirServer&quot;\/&gt;     &lt;url value=&quot;http:\/\/localhost:3030\/metadata&quot;\/&gt;     &lt;version value=&quot;1.1-SNAPSHOT&quot;\/&gt;     &lt;name value=&quot;Bagri FHIR Server Conformance Statement&quot;\/&gt;     &lt;status value=&quot;draft&quot;\/&gt;     &lt;experimental value=&quot;true&quot;\/&gt;     &lt;date value=&quot;{fn:current-dateTime()}&quot;\/&gt;     &lt;publisher value=&quot;Bagri Project&quot;\/&gt;     &lt;contact&gt;         &lt;name value=&quot;Maxim Petrov&quot;\/&gt;         &lt;telecom&gt;             &lt;system value=&quot;other&quot;\/&gt;             &lt;value value=&quot;@mfalifax&quot;\/&gt;             &lt;use value=&quot;work&quot;\/&gt;         &lt;\/telecom&gt;     &lt;\/contact&gt;     &lt;description value=&quot;Standard Conformance Statement for the open source Reference FHIR Server provided by Bagri&quot;\/&gt;     &lt;kind value=&quot;instance&quot;\/&gt;     &lt;instantiates value=&quot;http:\/\/hl7.org\/fhir\/Conformance\/terminology-server&quot;\/&gt;     &lt;software&gt;         &lt;name value=&quot;Reference Server&quot;\/&gt;         &lt;version value=&quot;1.1-SNAPSHOT&quot;\/&gt;         &lt;releaseDate value=&quot;2016-11-10&quot;\/&gt;     &lt;\/software&gt;     &lt;implementation&gt;         &lt;description value=&quot;FHIR Server running at http:\/\/localhost:3030\/&quot;\/&gt;         &lt;url value=&quot;http:\/\/localhost:3030\/&quot;\/&gt;     &lt;\/implementation&gt;     &lt;fhirVersion value=&quot;1.7.0&quot;\/&gt;     &lt;acceptUnknown value=&quot;both&quot;\/&gt;     &lt;format value=&quot;application\/fhir+xml&quot;\/&gt;     &lt;rest&gt;         &lt;mode value=&quot;server&quot;\/&gt;         &lt;!-- \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u043e\u0432 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432, \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u0435\u043c\u044b\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c --&gt;         &lt;resource&gt;             &lt;type value=&quot;Patient&quot;\/&gt;             &lt;profile&gt;                 &lt;reference value=&quot;http:\/\/fhir3.healthintersections.com.au\/open\/StructureDefinition\/patient&quot;\/&gt;             &lt;\/profile&gt;             &lt;!-- \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u043e\u0432, \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u043c --&gt;              &lt;interaction&gt;                 &lt;code value=&quot;read&quot;\/&gt;             &lt;\/interaction&gt;             &lt;interaction&gt;                 &lt;code value=&quot;vread&quot;\/&gt;             &lt;\/interaction&gt;             &lt;interaction&gt;                 &lt;code value=&quot;search-type&quot;\/&gt;             &lt;\/interaction&gt;             &lt;interaction&gt;                 &lt;code value=&quot;update&quot;\/&gt;             &lt;\/interaction&gt;             &lt;interaction&gt;                 &lt;code value=&quot;create&quot;\/&gt;             &lt;\/interaction&gt;             &lt;interaction&gt;                 &lt;code value=&quot;delete&quot;\/&gt;             &lt;\/interaction&gt;             &lt;readHistory value=&quot;true&quot;\/&gt;             &lt;updateCreate value=&quot;true&quot;\/&gt;             &lt;!-- \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e \u043f\u0440\u0438 \u043f\u043e\u0438\u0441\u043a\u0435 \u043c\u0435\u0442\u043e\u0434\u043e\u043c search --&gt;             &lt;searchParam&gt;                 &lt;name value=&quot;birthdate&quot;\/&gt;                 &lt;definition value=&quot;http:\/\/hl7.org\/fhir\/SearchParameter\/Patient-birthdate&quot;\/&gt;                 &lt;type value=&quot;date&quot;\/&gt;                 &lt;documentation value=&quot;The patient's date of birth&quot;\/&gt;                 &lt;!-- \u043f\u043e\u0438\u0441\u043a \u043f\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u044e equals --&gt;                 &lt;modifier value=&quot;exact&quot;\/&gt;             &lt;\/searchParam&gt;             &lt;searchParam&gt;                 &lt;name value=&quot;gender&quot;\/&gt;                 &lt;definition value=&quot;http:\/\/hl7.org\/fhir\/SearchParameter\/Patient-gender&quot;\/&gt;                 &lt;type value=&quot;token&quot;\/&gt;                 &lt;documentation value=&quot;Gender of the patient&quot;\/&gt;                 &lt;modifier value=&quot;exact&quot;\/&gt;             &lt;\/searchParam&gt;             &lt;searchParam&gt;                 &lt;name value=&quot;identifier&quot;\/&gt;                 &lt;definition value=&quot;http:\/\/hl7.org\/fhir\/SearchParameter\/Patient-identifier&quot;\/&gt;                 &lt;type value=&quot;token&quot;\/&gt;                 &lt;documentation value=&quot;A patient identifier&quot;\/&gt;                 &lt;!-- \u043f\u043e\u0438\u0441\u043a \u043f\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u044e contains --&gt;                 &lt;modifier value=&quot;contains&quot;\/&gt;             &lt;\/searchParam&gt;             &lt;searchParam&gt;                 &lt;name value=&quot;name&quot;\/&gt;                 &lt;definition value=&quot;http:\/\/hl7.org\/fhir\/SearchParameter\/Patient-name&quot;\/&gt;                 &lt;type value=&quot;string&quot;\/&gt;                 &lt;documentation value=&quot;A server defined search that may match any of the string fields in the HumanName, including family, give, prefix, suffix and\/or text&quot;\/&gt;                 &lt;modifier value=&quot;contains&quot;\/&gt;             &lt;\/searchParam&gt;             &lt;searchParam&gt;                 &lt;name value=&quot;telecom&quot;\/&gt;                 &lt;definition value=&quot;http:\/\/hl7.org\/fhir\/SearchParameter\/Patient-telecom&quot;\/&gt;                 &lt;type value=&quot;token&quot;\/&gt;                 &lt;documentation value=&quot;The value in any kind of telecom details of the patient&quot;\/&gt;                 &lt;modifier value=&quot;contains&quot;\/&gt;             &lt;\/searchParam&gt;         &lt;\/resource&gt;     &lt;\/rest&gt;   &lt;\/CapabilityStatement&gt; }; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u044d\u0442\u043e \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0440\u0435\u0441\u0443\u0440\u0441 Conformance. \u0415\u0433\u043e \u0437\u0430\u0434\u0430\u0447\u0430 \u2014 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u0442\u043e\u0447\u043a\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u044d\u0442\u0438\u0445 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u0445. <\/p>\n<p>  \u0414\u043b\u044f \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u043d\u043e\u0433\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430 Patient \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0434\u0440\u0443\u0433\u043e\u0439 \u043c\u043e\u0434\u0443\u043b\u044c XQuery: &lt;bagri_home&gt;\/data\/fhir\/patient_module.xq. \u0422\u0430\u043a \u0436\u0435 \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435 \u043e\u0431\u044a\u044f\u0432\u0438\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430 \u0438\u043c\u0435\u043d:<\/p>\n<pre><code>module namespace fhir = &quot;http:\/\/hl7.org\/fhir\/patient&quot;;  declare namespace http = &quot;http:\/\/www.expath.org\/http&quot;; declare namespace rest = &quot;http:\/\/www.expath.org\/restxq&quot;; declare namespace bgdm = &quot;http:\/\/bagridb.com\/bagri-xdm&quot;; declare namespace p = &quot;http:\/\/hl7.org\/fhir&quot;;  <\/code><\/pre>\n<p>  \u0420\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u043c\u0435\u0442\u043e\u0434 read:  <\/p>\n<pre><code>declare    %rest:GET  (: \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043c\u0435\u0442\u043e\u0434 HTTP, \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0435\u0441\u0443\u0440\u0441 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d :)   %rest:path(&quot;\/{id}&quot;)  (: \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043f\u0443\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0440\u0435\u0441\u0443\u0440\u0441\u0443; id - \u0448\u0430\u0431\u043b\u043e\u043d\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u043f\u0443\u0442\u0438 :)   %rest:produces(&quot;application\/fhir+xml&quot;)  (:  \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0444\u043e\u0440\u043c\u0430\u0442 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 :) function fhir:get-patient-by-id($id as xs:string) as element()? {   collection(&quot;Patients&quot;)\/p:Patient[p:id\/@value = $id] }; <\/code><\/pre>\n<p>  \u0412\u044b\u0433\u043b\u044f\u0434\u0438\u0442, \u043d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u0432\u0435\u0441\u044c\u043c\u0430 \u043f\u0440\u0438\u0432\u043b\u0435\u043a\u0430\u0442\u0435\u043b\u044c\u043d\u043e: \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u043e\u0433\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430 \u0432\u0441\u0435\u0433\u043e \u0432 \u043e\u0434\u043d\u0443 \u0441\u0442\u0440\u043e\u043a\u0443! \u041d\u043e, \u043a\u0430\u043a \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e, \u0434\u044c\u044f\u0432\u043e\u043b \u043a\u0440\u043e\u0435\u0442\u0441\u044f \u0432 \u0434\u0435\u0442\u0430\u043b\u044f\u0445. \u041f\u043e\u043c\u0438\u043c\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f, \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f FHIR \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0442\u0430\u043a \u0436\u0435 \u043c\u043d\u043e\u0433\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u0438 \u0441\u0442\u0430\u0442\u0443\u0441\u044b \u0438 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 HTTP, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0435\u0440\u0432\u0438\u0441 \u043e\u0431\u044f\u0437\u0430\u043d \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u0432 \u0442\u0430\u043a\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u0432\u044b\u0448\u0435 \u043c\u0435\u0442\u043e\u0434 read \u0441 \u0443\u0447\u0451\u0442\u043e\u043c \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u044b\u0445 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0439:<\/p>\n<pre><code>declare    %rest:GET   %rest:path(&quot;\/{id}&quot;)   %rest:produces(&quot;application\/fhir+xml&quot;) function fhir:get-patient-by-id($id as xs:string) as element()* {   let $itr := collection(&quot;Patients&quot;)\/p:Patient[p:id\/@value = $id]   return     if ($itr) then        (&lt;rest:response&gt;          &lt;http:response status=&quot;200&quot;&gt;           (: \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c\u044b\u0439 \u0440\u0435\u0441\u0443\u0440\u0441 \u0438\u043c\u0435\u0435\u0442 \u0432\u0435\u0440\u0441\u0438\u044e? :)          {if ($itr\/p:meta\/p:versionId\/@value) then (             (: \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a ETag \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043d\u043e\u043c\u0435\u0440 \u0432\u0435\u0440\u0441\u0438\u0438 \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430 Patient :)            &lt;http:header name=&quot;ETag&quot; value=&quot;W\/&quot;{$itr\/p:meta\/p:versionId\/@value}&quot;&quot;\/&gt;,             (: \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a Content-Location \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0430\u0434\u0440\u0435\u0441, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u0430 :)            &lt;http:header name=&quot;Content-Location&quot; value=&quot;\/Patient\/{$id}\/_history\/{$itr\/p:meta\/p:versionId\/@value}&quot;\/&gt;            ) else (             (: \u0438\u043d\u0430\u0447\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a Content-Location \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u0430\u0434\u0440\u0435\u0441 \u0440\u0435\u0441\u0443\u0440\u0441\u0430 :)            &lt;http:header name=&quot;Content-Location&quot; value=&quot;\/Patient\/{$id}&quot;\/&gt;            )}             (: \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a Last-Modified \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0434\u0430\u0442\u0443\/\u0432\u0440\u0435\u043c\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u0430 :)            &lt;http:header name=&quot;Last-Modified&quot; value=&quot;{format-dateTime(xs:dateTime($itr\/p:meta\/p:lastUpdated\/@value), &quot;[FNn,3-3], [D] [MNn,3-3] [Y] [H01]:[m01]:[s01] [z,*-6]&quot;)}&quot;\/&gt;          &lt;\/http:response&gt;                             &lt;\/rest:response&gt;, $itr)     else        (: \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0441\u0442\u0430\u0442\u0443\u0441 404 \u0435\u0441\u043b\u0438 \u043f\u0430\u0446\u0438\u0435\u043d\u0442 \u0441 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u043c id \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d :)       &lt;rest:response&gt;         &lt;http:response status=&quot;404&quot; message=&quot;Patient with id={$id} was not found.&quot;\/&gt;       &lt;\/rest:response&gt; }; <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u0443\u0441\u0430 \u0438 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432 \u043e\u0442\u0432\u0435\u0442\u0430 HTTP \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 http:response, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0434\u043e\u043b\u0436\u043d\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445. \u0422\u0430\u043a \u0436\u0435 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0442\u0438\u043f \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 element()? \u043d\u0430 element()*, \u0447\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u044d\u0442\u0443 \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043d\u0430 REST \u0441\u0435\u0440\u0432\u0435\u0440.<br \/>  \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0442\u0430\u043a\u0430\u044f \u043f\u043e\u043b\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0439 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u043e\u043b\u0435\u0435 \u043c\u043d\u043e\u0433\u043e\u0441\u043b\u043e\u0432\u043d\u043e\u0439. \u041d\u043e \u043d\u0435 \u0431\u0435\u0440\u0443\u0441\u044c \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u0430\u043a\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430\/\u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f FHIR \u043a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u0435\u0435. \u0421 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, \u0441\u0438\u043b\u044c\u043d\u043e \u043f\u0440\u0438\u0432\u043b\u0435\u043a\u0430\u044e\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 XQuery \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 XML \u0438 \u0441 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044f\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<p>  \u041d\u0438\u0436\u0435 \u044f \u0443\u0436\u0435 \u043d\u0435 \u0431\u0443\u0434\u0443 \u043e\u0442\u0432\u043b\u0435\u043a\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0432\u0441\u0435\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0435\u0432, \u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0432\u044b\u0448\u0435 \u0431\u044b\u043b\u043e \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e, \u043a\u0430\u043a \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u0442\u0430\u0442\u0443\u0441\u044b \u0438 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 HTTP. <br \/>  \u0411\u0430\u0437\u043e\u0432\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043c\u0435\u0442\u043e\u0434\u0430 vread \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0445\u043e\u0436\u0435:<\/p>\n<pre><code>declare    %rest:GET   %rest:path(&quot;\/{id}\/_history\/{vid}&quot;)  (: \u043a\u0440\u043e\u043c\u0435 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430 \u0437\u0434\u0435\u0441\u044c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u043f\u0443\u0442\u0438 \u0442\u0430\u043a\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043d\u043e\u043c\u0435\u0440 \u0432\u0435\u0440\u0441\u0438\u0438 :)   %rest:produces(&quot;application\/fhir+xml&quot;) function fhir:get-patient-by-id-version($id as xs:string, $vid as xs:string) as element()? {   collection(&quot;Patients&quot;)\/p:Patient[p:id\/@value = $id and p:meta\/p:versionId\/@value = $vid] }; <\/code><\/pre>\n<p>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043c\u0435\u0442\u043e\u0434 \u2014 search. \u0412 \u0440\u0435\u0441\u0443\u0440\u0441\u0435 Conformance \u043c\u044b \u0443\u043a\u0430\u0437\u0430\u043b\u0438, \u0447\u0442\u043e \u043c\u043e\u0436\u0435\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043f\u043e\u0438\u0441\u043a \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u043e\u0432 \u043f\u043e 5 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c: name, birthday, gender, identifier \u0438 telecom. \u0422\u0430\u043a \u0436\u0435 \u043c\u044b \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u043a\u0430\u043a \u0438\u043c\u0435\u043d\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u043f\u043e\u0438\u0441\u043a\u0430, \u0447\u0435\u0440\u0435\u0437 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 modifier, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f: missing | exact | contains | not | text | in | not-in | below | above | type. \u0418\u0445 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <a href=\"http:\/\/fhir-ru.github.io\/valueset-search-modifier-code.html\">\u0437\u0434\u0435\u0441\u044c<\/a>.<\/p>\n<pre><code>declare    %rest:GET   %rest:produces(&quot;application\/fhir+xml&quot;)   %rest:query-param(&quot;identifier&quot;, &quot;{$identifier}&quot;)  (: \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u043e\u0438\u0441\u043a\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u043c \u0432 \u0441\u0442\u0440\u043e\u043a\u0435 :)   %rest:query-param(&quot;birthdate&quot;, &quot;{$birthdate}&quot;) (: \u0437\u0430\u043f\u0440\u043e\u0441\u0430 http; \u0432\u0441\u0435 \u043e\u043d\u0438 \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 :)   %rest:query-param(&quot;gender&quot;, &quot;{$gender}&quot;)    %rest:query-param(&quot;name&quot;, &quot;{$name}&quot;)   %rest:query-param(&quot;telecom&quot;, &quot;{$telecom}&quot;) function fhir:search-patients($identifier as xs:string?, $birthdate as xs:date?, $gender as xs:string?, $name as xs:string?, $telecom as xs:string?) as element()* { (: \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043d\u0430\u0431\u043e\u0440 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 (\u043f\u0430\u0446\u0438\u0435\u043d\u0442\u043e\u0432), \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u044f\u044e\u0449\u0438\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c \u043f\u043e\u0438\u0441\u043a\u0430 :)   let $itr := collection(&quot;Patients&quot;)\/p:Patient[  \t(not(exists($gender)) or p:gender\/@value = $gender)     and (not(exists($birthdate)) or p:birthDate\/@value = $birthdate)      and (not(exists($name)) or contains(data(p:text), $name))      and (not(exists($identifier)) or contains(p:identifier\/p:value\/@value, $identifier))      and (not(exists($telecom)) or contains(string-join(p:telecom\/p:value\/@value, &quot; &quot;), $telecom))]  (: \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 Bundle :)   return     &lt;Bundle xmlns=&quot;http:\/\/hl7.org\/fhir&quot;&gt;       &lt;id value=&quot;{bgdm:get-uuid()}&quot; \/&gt;  (: \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 bundle ID :)       &lt;meta&gt;         &lt;lastUpdated value=&quot;{current-dateTime()}&quot; \/&gt;       &lt;\/meta&gt;       &lt;type value=&quot;searchset&quot; \/&gt;       &lt;total value=&quot;{count($itr)}&quot; \/&gt;       &lt;link&gt;         &lt;relation value=&quot;self&quot; \/&gt;         &lt;url value=&quot;http:\/\/bagridb.com\/Patient\/search?name=test&quot; \/&gt;       &lt;\/link&gt;       {for $ptn in $itr        return            &lt;entry&gt;            &lt;resource&gt;{$ptn}&lt;\/resource&gt;          &lt;\/entry&gt;       }     &lt;\/Bundle&gt; };   <\/code><\/pre>\n<p>  \u0441reate \u2014 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043d\u043e\u0432\u043e\u0433\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430 Patient, \u043b\u0438\u0431\u043e \u043d\u043e\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0443\u0436\u0435 \u0438\u043c\u0435\u044e\u0449\u0435\u0433\u043e\u0441\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u0430.<\/p>\n<pre><code>declare    %rest:POST (: \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043d\u043e\u0432\u043e\u0433\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043c\u0435\u0442\u043e\u0434\u043e\u043c POST :)   %rest:consumes(&quot;application\/fhir+xml&quot;)  (: \u043e\u0436\u0438\u0434\u0430\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u043e\u043b\u043d\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u0430 \u0432 \u0442\u0435\u043b\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 XML :)   %rest:produces(&quot;application\/fhir+xml&quot;)  (: \u043d\u043e\u0432\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u0430 \u0432\u0435\u0440\u043d\u0435\u043c \u043a\u043b\u0438\u0435\u043d\u0442\u0443 \u0432 \u0442\u043e\u043c \u0436\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 :) function fhir:create-patient($content as xs:string) as element()? {   let $doc := parse-xml($content)  (: \u0440\u0430\u0441\u043f\u0430\u0440\u0441\u0438\u043c \u0432\u0445\u043e\u0434\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 XML, \u0437\u0430\u043e\u0434\u043d\u043e \u0438 \u043f\u0440\u043e\u0432\u0430\u043b\u0438\u0434\u0438\u0440\u0443\u0435\u043c \u0435\u0433\u043e :)   let $uri := xs:string($doc\/p:Patient\/p:id\/@value) || &quot;.xml&quot;  (: \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c uri \u043d\u043e\u0432\u043e\u0433\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430 :)   let $uri := bgdm:store-document(xs:anyURI($uri), $content, ())  (: \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0432 \u043e\u0442\u0432\u0435\u0442 \u0435\u0433\u043e uri, \u0445\u043e\u0442\u044f \u043e\u043d \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u043e\u0442\u043b\u0438\u0447\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043d\u0430\u043c\u0438 2\u043c\u044f \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438 \u0432\u044b\u0448\u0435 :)   let $content := bgdm:get-document-content($uri)  (: \u0430 \u0432\u043e\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u0430, \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0441\u043e \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0435\u0439, \u043c\u043e\u0436\u0435\u0442 \u043e\u0442\u043b\u0438\u0447\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u043d\u0430 \u0432\u0445\u043e\u0434, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043c\u043e\u0433\u043b\u0430 \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044f \u0438\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e :)   let $doc := parse-xml($content)   return $doc\/p:Patient   }; <\/code><\/pre>\n<p>  update \u2014 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043d\u043e\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0438\u043c\u0435\u044e\u0449\u0435\u0433\u043e\u0441\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u0430 Patient, \u043b\u0438\u0431\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043d\u043e\u0432\u043e\u0433\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430, \u0435\u0441\u043b\u0438 \u043f\u0430\u0446\u0438\u0435\u043d\u0442 \u0441 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u043c \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u043c \u0435\u0449\u0451 \u043d\u0435 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435.<\/p>\n<pre><code>declare    %rest:PUT (: \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043c\u0435\u0442\u043e\u0434\u043e\u043c PUT :)   %rest:path(&quot;\/{id}&quot;). (: \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c \u0440\u0435\u0441\u0443\u0440\u0441 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u0448\u0430\u0431\u043b\u043e\u043d\u043d\u043e\u043c\u0443 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0443 :)   %rest:consumes(&quot;application\/fhir+xml&quot;)     %rest:produces(&quot;application\/fhir+xml&quot;) function fhir:update-patient($id as xs:string, $content as xs:string) as element()? {   for $uri in fhir:get-patient-uri($id)  (: \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0443\u0442\u0438\u043b\u0438\u0442\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0434\u0443\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0434 :)   let $uri := bgdm:store-document($uri, $content, ())   let $content := bgdm:get-document-content($uri, ())   let $doc := parse-xml($content)    return $doc\/p:Patient }; <\/code><\/pre>\n<p>  delete \u2014 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u0430 Patient.<\/p>\n<pre><code>declare    %rest:DELETE  (: \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u0430, \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e DELETE :)   %rest:path(&quot;\/{id}&quot;) function fhir:delete-patient($id as xs:string) as item()? {   for $uri in fhir:get-patient-uri($id)   return bgdm:remove-document($uri)  (: \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0440\u0435\u0441\u0443\u0440\u0441\u0443 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 :) }; <\/code><\/pre>\n<p>  \u0412\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0439 \u0438\u0437 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f:<\/p>\n<pre><code>declare    %private function fhir:get-patient-uri($id as xs:string) as xs:anyURI? {   (: \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 XQuery :)   let $query :=  ' declare namespace p = &quot;http:\/\/hl7.org\/fhir&quot;;    declare variable $id external;   for $ptn in fn:collection(&quot;Patients&quot;)\/p:Patient   where $ptn\/p:id\/@value = $id   return $ptn'     (: \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0432 \u0435\u0433\u043e, \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0432 \u043e\u0442\u0432\u0435\u0442 uri \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430, \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u044f\u044e\u0449\u0435\u0433\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u0430 :)   let $uri := bgdm:query-document-uris($query, (&quot;id&quot;, $id), ())   return xs:anyURI($uri) }; <\/code><\/pre>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c, \u0432 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043b\u043e\u0433\u0438\u043a\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438 XQuery, \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430\u043c\u0438 Bagri. \u0412\u043e\u0442 \u0438\u0445 \u043a\u0440\u0430\u0442\u043a\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435:<\/p>\n<pre><code>bgdm:get-uuid() as xs:string - \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 uuid bgdm:query-document-uris(xs:string, xs:anyType*, xs:anyAtomicType*) as xs:string* - \u0432\u0435\u0440\u043d\u0443\u0442\u044c uri \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0442 \u0432 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0432\u044b\u0431\u043e\u0440\u043a\u0443 XQuery bgdm:store-document(xs:anyURI, xs:string, xs:anyAtomicType*) as xs:anyURI - \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u043d\u043e\u0432\u044b\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442, \u043b\u0438\u0431\u043e \u043d\u043e\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0438\u043c\u0435\u044e\u0449\u0435\u0433\u043e\u0441\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 bgdm:get-document-content(xs:anyURI) as xs:string* - \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 bgdm:remove-document(xs:anyURI) as xs:anyURI - \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 <\/code><\/pre>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0445 \u043c\u043e\u0434\u0443\u043b\u0435\u0439, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0449\u0438\u0445\u0441\u044f \u043b\u043e\u0433\u0438\u043a\u0443 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c\u0438 FHIR, \u0437\u0430\u043a\u043e\u043d\u0447\u0435\u043d\u0430. \u0414\u0443\u043c\u0430\u044e, \u0432 45 \u043c\u0438\u043d\u0443\u0442 \u043c\u044b \u0443\u043b\u043e\u0436\u0438\u043b\u0438\u0441\u044c :). \u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u0441\u0442\u0430\u0442\u044c\u0438 \u044f \u0445\u043e\u0442\u0435\u043b \u0431\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c, \u043a\u0430\u043a \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u0435 \u0432\u044b\u0448\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u0438 \u043e\u0442\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0445. \u041d\u0443 \u0438, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0431\u044b\u043b\u043e \u0431\u044b \u043e\u0447\u0435\u043d\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043f\u043e\u0441\u043b\u0443\u0448\u0430\u0442\u044c, \u0447\u0442\u043e \u043c\u043d\u043e\u0433\u043e\u0443\u0432\u0430\u0436\u0430\u0435\u043c\u0430\u044f \u0430\u0443\u0434\u0438\u0442\u043e\u0440\u0438\u044f \u0425\u0430\u0431\u0440\u0430 \u0434\u0443\u043c\u0430\u0435\u0442 \u043f\u043e \u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0432\u043e\u0434\u0443.<br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/315392\/\"> https:\/\/habrahabr.ru\/post\/315392\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041d\u0435 \u0442\u0430\u043a \u0434\u0430\u0432\u043d\u043e, \u043f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u044f \u043b\u0435\u043d\u0442\u0443 CNews, \u043d\u0430\u0442\u043a\u043d\u0443\u043b\u0441\u044f \u043d\u0430 \u0430\u043d\u043e\u043d\u0441 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438 \u201c<a href=\"http:\/\/events.cnews.ru\/events\/it_v_zdravoohranenii__v_ojidanii_proryva.shtml\">\u0418\u0422 \u0432 \u0437\u0434\u0440\u0430\u0432\u043e\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0438: \u0432 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u0438 \u043f\u0440\u043e\u0440\u044b\u0432\u0430<\/a>\u201d. \u041e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u201c\u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 2011 \u0433. \u0432 \u0420\u043e\u0441\u0441\u0438\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442\u0441\u044f \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u043d\u044b\u0439 \u0433\u043e\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u043f\u043e \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u044e \u0415\u0434\u0438\u043d\u043e\u0439 \u0433\u043e\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0432 \u0441\u0444\u0435\u0440\u0435 \u0437\u0434\u0440\u0430\u0432\u043e\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f (\u0415\u0413\u0418\u0421\u0417)\u201d. \u0423\u0433\u043b\u0443\u0431\u0438\u0432\u0448\u0438\u0441\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0432 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b, \u0447\u0442\u043e \u0415\u0413\u0418\u0417\u0421 \u0431\u0430\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043d\u0430 \u0448\u0438\u0440\u043e\u043a\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u043d\u0430 \u0437\u0430\u043f\u0430\u0434\u0435 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0430\u0445 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 <a href=\"http:\/\/www.hl7.org\/index.cfm\">Health Language 7<\/a> (\u0434\u0430\u043b\u0435\u0435 HL7). \u0410 \u0432 \u043e\u0441\u043d\u043e\u0432\u0435 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043e\u0432 HL7 \u043b\u0435\u0436\u0438\u0442 XML. \u041f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0449\u0435\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b HL7, \u043d\u0430 <a href=\"http:\/\/bagridb.com\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043d\u043e\u0439 \u0411\u0414 Bagri<\/a> \u0438, \u0435\u0441\u043b\u0438 \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f \u0432\u044b\u0439\u0434\u0435\u0442 \u0443\u0434\u0430\u0447\u043d\u044b\u043c, \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u0434\u043e\u043a\u043b\u0430\u0434 \u043e \u043d\u0435\u043c \u043d\u0430 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u044e.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/f11\/0ab\/699\/f110ab699fe5481eb3a77f8462ee203a.jpg\" alt=\"image\"\/><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-281710","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/281710","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=281710"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/281710\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=281710"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=281710"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=281710"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}