1010from nrlf .producer .fhir .r4 .model import (
1111 Attachment ,
1212 CodeableConcept ,
13- Coding ,
1413 ContentStabilityExtension ,
1514 ContentStabilityExtensionCoding ,
1615 ContentStabilityExtensionValueCodeableConcept ,
1918 DocumentReferenceContext ,
2019 DocumentReferenceRelatesTo ,
2120 Identifier ,
21+ NRLCodeableConcept ,
22+ NRLCoding ,
2223 NRLFormatCode ,
2324 Reference ,
2425)
@@ -80,9 +81,9 @@ def create_test_document_reference(items: dict) -> DocumentReference:
8081 ],
8182 ),
8283 context = DocumentReferenceContext (
83- practiceSetting = CodeableConcept (
84+ practiceSetting = NRLCodeableConcept (
8485 coding = [
85- Coding (
86+ NRLCoding (
8687 system = SNOMED_SYSTEM_URL ,
8788 code = str (practice_setting_code ),
8889 display = practice_setting_display ,
@@ -103,7 +104,7 @@ def create_test_document_reference(items: dict) -> DocumentReference:
103104 )
104105
105106 base_doc_ref .type = CodeableConcept (
106- coding = [Coding (system = type_system , code = type_code , display = type_display )]
107+ coding = [NRLCoding (system = type_system , code = type_code , display = type_display )]
107108 )
108109
109110 if items .get ("subject" ):
@@ -136,9 +137,9 @@ def create_test_document_reference(items: dict) -> DocumentReference:
136137 f"{ SNOMED_SYSTEM_URL } |{ items ['category' ]} " , {}
137138 ).get ("display" )
138139 base_doc_ref .category = [
139- CodeableConcept (
140+ NRLCodeableConcept (
140141 coding = [
141- Coding (
142+ NRLCoding (
142143 system = SNOMED_SYSTEM_URL ,
143144 code = items ["category" ],
144145 display = category_display ,
0 commit comments