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

5# 2021, SMART Health IT. 

6 

7 

8from . import element 

9 

10class Expression(element.Element): 

11 """ An expression that can be used to generate a value. 

12  

13 A expression that is evaluated in a specified context and returns a value. 

14 The context of use of the expression must specify the context in which the 

15 expression is evaluated, and how the result of the expression is used. 

16 """ 

17 

18 resource_type = "Expression" 

19 

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

21 """ Initialize all valid properties. 

22  

23 :raises: FHIRValidationError on validation errors, unless strict is False 

24 :param dict jsondict: A JSON dictionary to use for initialization 

25 :param bool strict: If True (the default), invalid variables will raise a TypeError 

26 """ 

27 

28 self.description = None 

29 """ Natural language description of the condition. 

30 Type `str`. """ 

31 

32 self.expression = None 

33 """ Expression in specified language. 

34 Type `str`. """ 

35 

36 self.language = None 

37 """ text/cql | text/fhirpath | application/x-fhir-query | etc.. 

38 Type `str`. """ 

39 

40 self.name = None 

41 """ Short name assigned to expression for reuse. 

42 Type `str`. """ 

43 

44 self.reference = None 

45 """ Where the expression is found. 

46 Type `str`. """ 

47 

48 super(Expression, self).__init__(jsondict=jsondict, strict=strict) 

49 

50 def elementProperties(self): 

51 js = super(Expression, self).elementProperties() 

52 js.extend([ 

53 ("description", "description", str, False, None, False), 

54 ("expression", "expression", str, False, None, False), 

55 ("language", "language", str, False, None, True), 

56 ("name", "name", str, False, None, False), 

57 ("reference", "reference", str, False, None, False), 

58 ]) 

59 return js 

60 

61