Coverage for /home/martinb/workspace/client-py/fhirclient/models/relatedartifact.py : 38%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3#
4# Generated from FHIR 4.0.0-a53ec6ee1b (http://hl7.org/fhir/StructureDefinition/RelatedArtifact) on 2021-05-18.
5# 2021, SMART Health IT.
8from . import element
10class RelatedArtifact(element.Element):
11 """ Related artifacts for a knowledge resource.
13 Related artifacts such as additional documentation, justification, or
14 bibliographic references.
15 """
17 resource_type = "RelatedArtifact"
19 def __init__(self, jsondict=None, strict=True):
20 """ Initialize all valid properties.
22 :raises: FHIRValidationError on validation errors, unless strict is False
23 :param dict jsondict: A JSON dictionary to use for initialization
24 :param bool strict: If True (the default), invalid variables will raise a TypeError
25 """
27 self.citation = None
28 """ Bibliographic citation for the artifact.
29 Type `str`. """
31 self.display = None
32 """ Brief description of the related artifact.
33 Type `str`. """
35 self.document = None
36 """ What document is being referenced.
37 Type `Attachment` (represented as `dict` in JSON). """
39 self.label = None
40 """ Short label.
41 Type `str`. """
43 self.resource = None
44 """ What resource is being referenced.
45 Type `str`. """
47 self.type = None
48 """ documentation | justification | citation | predecessor | successor
49 | derived-from | depends-on | composed-of.
50 Type `str`. """
52 self.url = None
53 """ Where the artifact can be accessed.
54 Type `str`. """
56 super(RelatedArtifact, self).__init__(jsondict=jsondict, strict=strict)
58 def elementProperties(self):
59 js = super(RelatedArtifact, self).elementProperties()
60 js.extend([
61 ("citation", "citation", str, False, None, False),
62 ("display", "display", str, False, None, False),
63 ("document", "document", attachment.Attachment, False, None, False),
64 ("label", "label", str, False, None, False),
65 ("resource", "resource", str, False, None, False),
66 ("type", "type", str, False, None, True),
67 ("url", "url", str, False, None, False),
68 ])
69 return js
72import sys
73try:
74 from . import attachment
75except ImportError:
76 attachment = sys.modules[__package__ + '.attachment']