File tree Expand file tree Collapse file tree 1 file changed +0
-28
lines changed
Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -599,34 +599,6 @@ def test_validate_category_coding_invalid_system():
599599 }
600600
601601
602- def test_validate_author_no_author ():
603- validator = DocumentReferenceValidator ()
604- document_ref_data = load_document_reference_json ("Y05868-736253002-Valid" )
605-
606- del document_ref_data ["author" ]
607-
608- result = validator .validate (document_ref_data )
609-
610- assert result .is_valid is False
611- assert result .resource .id == "Y05868-99999-99999-999999"
612- assert len (result .issues ) == 1
613- assert result .issues [0 ].model_dump (exclude_none = True ) == {
614- "severity" : "error" ,
615- "code" : "required" ,
616- "details" : {
617- "coding" : [
618- {
619- "system" : "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1" ,
620- "code" : "INVALID_RESOURCE" ,
621- "display" : "Invalid validation of resource" ,
622- }
623- ]
624- },
625- "diagnostics" : "The required field 'author' is missing" ,
626- "expression" : ["author" ],
627- }
628-
629-
630602def test_validate_author_too_many_authors ():
631603 validator = DocumentReferenceValidator ()
632604 document_ref_data = load_document_reference_json ("Y05868-736253002-Valid" )
You can’t perform that action at this time.
0 commit comments