File tree Expand file tree Collapse file tree 1 file changed +18
-7
lines changed
Expand file tree Collapse file tree 1 file changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -28,14 +28,25 @@ def create_test_document_reference(items: dict) -> DocumentReference:
2828 base_doc_ref = DocumentReference .model_construct (
2929 resourceType = "DocumentReference" ,
3030 status = items .get ("status" , "current" ),
31- content = [
32- DocumentReferenceContent (
33- attachment = Attachment (
34- contentType = items .get ("contentType" , "application/json" ),
35- url = items ["url" ],
31+ content = items .get (
32+ "content" ,
33+ [
34+ DocumentReferenceContent (
35+ attachment = Attachment (
36+ contentType = items .get ("contentType" , "application/json" ),
37+ url = items ["url" ],
38+ ),
39+ format = Coding (
40+ system = items .get (
41+ "formatSystem" ,
42+ "https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode" ,
43+ ),
44+ code = items .get ("formatCode" , "urn:nhs-ic:unstructured" ),
45+ display = items .get ("formatDisplay" , "Unstructured document" ),
46+ ),
3647 )
37- )
38- ] ,
48+ ],
49+ ) ,
3950 context = DocumentReferenceContext (
4051 practiceSetting = CodeableConcept (
4152 coding = [
You can’t perform that action at this time.
0 commit comments