Subclassing FHIR's Reference
resource to add resolving capabilities.
More...
Public Member Functions | |
resolved (self, klass) | |
Resolves the reference and caches the result, returning instance(s) of the referenced classes. | |
processedReferenceIdentifier (self) | |
Normalizes the reference-id. | |
Public Member Functions inherited from fhirclient.models.reference.Reference | |
__init__ (self, jsondict=None, strict=True) | |
Initialize all valid properties. | |
elementProperties (self) | |
Returns a list of tuples, one tuple for each property that should be serialized, as: ("name", "json_name", type, is_list, "of_many", not_optional) | |
Public Member Functions inherited from fhirclient.models.fhirabstractbase.FHIRAbstractBase | |
with_json (cls, jsonobj) | |
Initialize an element from a JSON dictionary or array. | |
with_json_and_owner (cls, jsonobj, owner) | |
Instantiates by forwarding to with_json() , then remembers the "owner" of the instantiated elements. | |
update_with_json (self, jsondict) | |
Update the receiver with data in a JSON dictionary. | |
as_json (self) | |
Serializes to JSON by inspecting elementProperties() and creating a JSON dictionary of all registered properties. | |
owningResource (self) | |
Walks the owner hierarchy and returns the next parent that is a DomainResource instance. | |
owningBundle (self) | |
Walks the owner hierarchy and returns the next parent that is a Bundle instance. | |
resolvedReference (self, refid) | |
Returns the resolved reference with the given id, if it has been resolved already. | |
didResolveReference (self, refid, resolved) | |
Called by FHIRResource when it resolves a reference. | |
Public Attributes | |
reference | |
Public Attributes inherited from fhirclient.models.reference.Reference | |
display | |
identifier | |
reference | |
type | |
Public Attributes inherited from fhirclient.models.element.Element | |
extension | |
id | |
Additional Inherited Members | |
Static Public Attributes inherited from fhirclient.models.reference.Reference | |
str | resource_type = "Reference" |
Static Public Attributes inherited from fhirclient.models.element.Element | |
str | resource_type = "Element" |
Protected Member Functions inherited from fhirclient.models.fhirabstractbase.FHIRAbstractBase | |
_with_json_dict (cls, jsondict) | |
Internal method to instantiate from JSON dictionary. | |
_matches_type (self, value, typ) | |
Protected Attributes inherited from fhirclient.models.fhirabstractbase.FHIRAbstractBase | |
_resolved | |
_owner | |
Subclassing FHIR's Reference
resource to add resolving capabilities.
fhirclient.models.fhirreference.FHIRReference.processedReferenceIdentifier | ( | self | ) |
Normalizes the reference-id.
fhirclient.models.fhirreference.FHIRReference.resolved | ( | self, | |
klass | |||
) |
Resolves the reference and caches the result, returning instance(s) of the referenced classes.
klass | The expected class of the resource |
None
otherwise fhirclient.models.fhirreference.FHIRReference.reference |