Добавлено конвертирование xml результата в pdf
Some checks failed
Build And Push / publish (push) Failing after 55s

This commit is contained in:
2026-04-15 15:14:24 +03:00
parent 80badc38db
commit 2cb25e817c
3 changed files with 27 additions and 4 deletions

View File

@ -1,3 +1,4 @@
from pydantic_xml import BaseXmlModel, attr, element
from typing import TypedDict
from pydantic import BaseModel
@ -35,5 +36,26 @@ class Complaints(BaseModel):
complaints: str
NS = 'urn:hl7-org:v3'
class TextElement(BaseXmlModel, tag='text', ns=NS):
representation: str = attr()
media_type: str = attr(name='mediaType')
content: str
class NonXMLBody(BaseXmlModel, tag='nonXMLBody', ns=NS):
text: TextElement = element()
class Component(BaseXmlModel, tag='component', ns=NS):
non_xml_body: NonXMLBody = element(tag='nonXMLBody')
class ClinicalDocument(BaseXmlModel, tag='ClinicalDocument', ns=NS):
component: Component = element()
class DownloadFile(BaseModel):
link: str