care.emr.models.file_upload module¶
- class FileUpload(id, external_id, created_date, modified_date, deleted, history, meta, created_by, updated_by, name, internal_name, associating_id, file_type, file_category, upload_completed, is_archived, archive_reason, archived_datetime, archived_by)¶
Bases:
EMRBaseModel- name¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- internal_name¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- associating_id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- file_type¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- file_category¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- upload_completed¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- is_archived¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- archive_reason¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- archived_datetime¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- archived_by¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- files_manager = <care.emr.utils.file_manager.S3FilesManager object>¶
- get_extension()¶
- save(*args, **kwargs)¶
Create a random internal name to internally manage the file This is used as an intermediate step to avoid leakage of PII in-case of data leak
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- archived_by_id¶
- created_by¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- created_by_id¶
- created_date¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- deleted¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- external_id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- history¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- meta¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- modified_date¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- updated_by¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- updated_by_id¶