Skip to content

Commit 23095a9

Browse files
committed
NRL-000 add mising type display
1 parent 7ec8278 commit 23095a9

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

tests/smoke/setup.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from nrlf.core.constants import Categories, PointerTypes
1+
from nrlf.core.constants import TYPE_ATTRIBUTES, Categories, PointerTypes
22
from nrlf.producer.fhir.r4.model import (
33
Attachment,
44
CodeableConcept,
@@ -36,7 +36,15 @@ def build_document_reference(
3636
)
3737
],
3838
type=CodeableConcept(
39-
coding=[Coding(system="http://snomed.info/sct", code=type)]
39+
coding=[
40+
Coding(
41+
system="http://snomed.info/sct",
42+
code=type,
43+
display=TYPE_ATTRIBUTES.get(f"http://snomed.info/sct|{type}").get(
44+
"display"
45+
),
46+
)
47+
]
4048
),
4149
subject=Reference(
4250
identifier=Identifier(

0 commit comments

Comments
 (0)