cardea.fhir.Attachment¶
-
class
cardea.fhir.
Attachment
(dict_values=None)¶ For referring to data content defined in other formats.
- Parameters
contentType – Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate.
language – The human language of the content. The value can be any valid value according to BCP 47.
data – The actual data of the attachment - a sequence of bytes. In XML, represented using base64.
url – An alternative location where the data can be accessed.
size – The number of bytes of data that make up this attachment (before base64 encoding, if that is done).
hash – The calculated hash of the data using SHA-1. Represented using base64.
title – A label or set of text to display in place of the data.
creation – The date that the attachment was first created.
-
__init__
(dict_values=None)¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__
([dict_values])Initialize self.
assert_type
()Checks class values follow set possible enumerations.
get_dataframe
()Returns dataframe from class attribute values.
get_eligible_relationships
()Returns class relationships for attributes that are used.
get_id
()Returns fhir class identifier.
get_relationships
()Returns class relationships.
set_attributes
(dict_values)Sets values to class attributes.