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

5# 2021, SMART Health IT. 

6 

7 

8from . import element 

9 

10class Money(element.Element): 

11 """ An amount of economic utility in some recognized currency. 

12 """ 

13 

14 resource_type = "Money" 

15 

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

17 """ Initialize all valid properties. 

18  

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

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

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

22 """ 

23 

24 self.currency = None 

25 """ ISO 4217 Currency Code. 

26 Type `str`. """ 

27 

28 self.value = None 

29 """ Numerical value (with implicit precision). 

30 Type `float`. """ 

31 

32 super(Money, self).__init__(jsondict=jsondict, strict=strict) 

33 

34 def elementProperties(self): 

35 js = super(Money, self).elementProperties() 

36 js.extend([ 

37 ("currency", "currency", str, False, None, False), 

38 ("value", "value", float, False, None, False), 

39 ]) 

40 return js 

41 

42