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

5# 2021, SMART Health IT. 

6 

7 

8from . import element 

9 

10class UsageContext(element.Element): 

11 """ Describes the context of use for a conformance or knowledge resource. 

12  

13 Specifies clinical/business/etc. metadata that can be used to retrieve, 

14 index and/or categorize an artifact. This metadata can either be specific 

15 to the applicable population (e.g., age category, DRG) or the specific 

16 context of care (e.g., venue, care setting, provider of care). 

17 """ 

18 

19 resource_type = "UsageContext" 

20 

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

22 """ Initialize all valid properties. 

23  

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

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

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

27 """ 

28 

29 self.code = None 

30 """ Type of context being specified. 

31 Type `Coding` (represented as `dict` in JSON). """ 

32 

33 self.valueCodeableConcept = None 

34 """ Value that defines the context. 

35 Type `CodeableConcept` (represented as `dict` in JSON). """ 

36 

37 self.valueQuantity = None 

38 """ Value that defines the context. 

39 Type `Quantity` (represented as `dict` in JSON). """ 

40 

41 self.valueRange = None 

42 """ Value that defines the context. 

43 Type `Range` (represented as `dict` in JSON). """ 

44 

45 self.valueReference = None 

46 """ Value that defines the context. 

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

48 

49 super(UsageContext, self).__init__(jsondict=jsondict, strict=strict) 

50 

51 def elementProperties(self): 

52 js = super(UsageContext, self).elementProperties() 

53 js.extend([ 

54 ("code", "code", coding.Coding, False, None, True), 

55 ("valueCodeableConcept", "valueCodeableConcept", codeableconcept.CodeableConcept, False, "value", True), 

56 ("valueQuantity", "valueQuantity", quantity.Quantity, False, "value", True), 

57 ("valueRange", "valueRange", range.Range, False, "value", True), 

58 ("valueReference", "valueReference", fhirreference.FHIRReference, False, "value", True), 

59 ]) 

60 return js 

61 

62 

63import sys 

64try: 

65 from . import codeableconcept 

66except ImportError: 

67 codeableconcept = sys.modules[__package__ + '.codeableconcept'] 

68try: 

69 from . import coding 

70except ImportError: 

71 coding = sys.modules[__package__ + '.coding'] 

72try: 

73 from . import fhirreference 

74except ImportError: 

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

76try: 

77 from . import quantity 

78except ImportError: 

79 quantity = sys.modules[__package__ + '.quantity'] 

80try: 

81 from . import range 

82except ImportError: 

83 range = sys.modules[__package__ + '.range']