Repository URL to install this package:
|
Version:
4.0.0 ▾
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 4.0.0-a53ec6ee1b (http://hl7.org/fhir/StructureDefinition/Money) on 2019-05-07.
# 2019, SMART Health IT.
from . import element
class Money(element.Element):
""" An amount of economic utility in some recognized currency.
"""
resource_type = "Money"
def __init__(self, jsondict=None, strict=True):
""" Initialize all valid properties.
:raises: FHIRValidationError on validation errors, unless strict is False
:param dict jsondict: A JSON dictionary to use for initialization
:param bool strict: If True (the default), invalid variables will raise a TypeError
"""
self.currency = None
""" ISO 4217 Currency Code.
Type `str`. """
self.value = None
""" Numerical value (with implicit precision).
Type `float`. """
super(Money, self).__init__(jsondict=jsondict, strict=strict)
def elementProperties(self):
js = super(Money, self).elementProperties()
js.extend([
("currency", "currency", str, False, None, False),
("value", "value", float, False, None, False),
])
return js