Skip to content

Commit 4382306

Browse files
committed
[NRL-0000] Fixup process_transaction endpoint to support new BaseModel Parent class
1 parent 9cb69ca commit 4382306

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/producer/processTransaction/process_transaction_bundle.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
from nrlf.core.errors import OperationOutcomeError
1212
from nrlf.core.logger import LogReference, logger
1313
from nrlf.core.model import ConnectionMetadata
14+
from nrlf.core.parent_model import Parent
1415
from nrlf.core.response import NRLResponse, Response, SpineErrorResponse
1516
from nrlf.core.utils import create_fhir_instant
1617
from nrlf.core.validators import DocumentReferenceValidator
1718
from nrlf.producer.fhir.r4.model import (
18-
BaseModel,
1919
Bundle,
2020
BundleEntry,
2121
BundleEntryResponse,
@@ -358,7 +358,7 @@ def handler(
358358
)
359359

360360
entries: list[BundleEntry] = []
361-
issues: list[BaseModel] = []
361+
issues: list[Parent] = []
362362

363363
for entry in body.entry:
364364
if not entry.resource or entry.resource["resourceType"] != "DocumentReference":

0 commit comments

Comments
 (0)