onconova.interoperability.controllers
ConflictResolution
¶
ConflictingCaseException
¶
ConflictingClinicalIdentifierException
¶
InteroperabilityController
¶
Bases: ControllerBase
API controller for interoperability operations related to resource and patient case management.
export_case_bundle(caseId)
¶
Exports a patient case bundle by retrieving the PatientCase object with the given case ID, creates an export event for the case, and returns the exported case object.
Source code in onconova/interoperability/controllers.py
export_resource(resourceId)
¶
Exports a resource identified by its UUID, serializing its data and associated metadata.
Notes:
- Creates an export event for the resource using `pghistory.create_event`.
- Computes a checksum of the exported data for integrity verification.
Source code in onconova/interoperability/controllers.py
import_case_bundle(bundle, conflict=None)
¶
Imports a patient case bundle into the database, handling conflicts based on the specified resolution strategy.
Source code in onconova/interoperability/controllers.py
resolve_resource_id(resourceId)
¶
Resolves a resource ID by searching across models for a matching UUID.
Source code in onconova/interoperability/controllers.py
runner