Hide keyboard shortcuts

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/Annotation) on 2021-05-18. 

5# 2021, SMART Health IT. 

6 

7 

8from . import element 

9 

10class Annotation(element.Element): 

11 """ Text node with attribution. 

12  

13 A text note which also contains information about who made the statement 

14 and when. 

15 """ 

16 

17 resource_type = "Annotation" 

18 

19 def __init__(self, jsondict=None, strict=True): 

20 """ Initialize all valid properties. 

21  

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 """ 

26 

27 self.authorReference = None 

28 """ Individual responsible for the annotation. 

29 Type `FHIRReference` (represented as `dict` in JSON). """ 

30 

31 self.authorString = None 

32 """ Individual responsible for the annotation. 

33 Type `str`. """ 

34 

35 self.text = None 

36 """ The annotation - text content (as markdown). 

37 Type `str`. """ 

38 

39 self.time = None 

40 """ When the annotation was made. 

41 Type `FHIRDate` (represented as `str` in JSON). """ 

42 

43 super(Annotation, self).__init__(jsondict=jsondict, strict=strict) 

44 

45 def elementProperties(self): 

46 js = super(Annotation, self).elementProperties() 

47 js.extend([ 

48 ("authorReference", "authorReference", fhirreference.FHIRReference, False, "author", False), 

49 ("authorString", "authorString", str, False, "author", False), 

50 ("text", "text", str, False, None, True), 

51 ("time", "time", fhirdate.FHIRDate, False, None, False), 

52 ]) 

53 return js 

54 

55 

56import sys 

57try: 

58 from . import fhirdate 

59except ImportError: 

60 fhirdate = sys.modules[__package__ + '.fhirdate'] 

61try: 

62 from . import fhirreference 

63except ImportError: 

64 fhirreference = sys.modules[__package__ + '.fhirreference']