Skip to content

Commit

Permalink
Generated FHIR v4 resource classes
Browse files Browse the repository at this point in the history
  • Loading branch information
zensoup committed Jan 25, 2019
1 parent 49ec51d commit ac35489
Show file tree
Hide file tree
Showing 204 changed files with 21,531 additions and 5,126 deletions.
58 changes: 25 additions & 33 deletions fhirbug/Fhir/Resources/account.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 3.0.1.11917 (http://hl7.org/fhir/StructureDefinition/Account) on 2017-10-28.
# 2017, SMART Health IT.
# Generated from FHIR 4.0.0-a53ec6ee1b (http://hl7.org/fhir/StructureDefinition/Account) on 2019-01-25.
# 2019, SMART Health IT.
##


Expand All @@ -26,14 +26,6 @@ def __init__(self, jsondict=None, strict=True, **kwargs):
:param bool strict: If True (the default), invalid variables will raise a TypeError
"""

self.active = None
""" Time window that transactions may be posted to this account.
Type `Period` (represented as `dict` in JSON). """

self.balance = None
""" How much is in account?.
Type `Money` (represented as `dict` in JSON). """

self.coverage = None
""" The party(s) that are responsible for covering the payment of this
account, and what order should they be applied to the account.
Expand All @@ -44,7 +36,7 @@ def __init__(self, jsondict=None, strict=True, **kwargs):
Type `str`. """

self.guarantor = None
""" Responsible for the account.
""" The parties ultimately responsible for balancing the Account.
List of `AccountGuarantor` items (represented as `dict` in JSON). """

self.identifier = None
Expand All @@ -56,20 +48,24 @@ def __init__(self, jsondict=None, strict=True, **kwargs):
Type `str`. """

self.owner = None
""" Who is responsible?.
Type `FHIRReference` referencing `Organization` (represented as `dict` in JSON). """
""" Entity managing the Account.
Type `FHIRReference` (represented as `dict` in JSON). """

self.period = None
self.partOf = None
""" Reference to a parent Account.
Type `FHIRReference` (represented as `dict` in JSON). """

self.servicePeriod = None
""" Transaction window.
Type `Period` (represented as `dict` in JSON). """

self.status = None
""" active | inactive | entered-in-error.
""" active | inactive | entered-in-error | on-hold | unknown.
Type `str`. """

self.subject = None
""" What is account tied to?.
Type `FHIRReference` referencing `Patient, Device, Practitioner, Location, HealthcareService, Organization` (represented as `dict` in JSON). """
""" The entity that caused the expenses.
List of `FHIRReference` items (represented as `dict` in JSON). """

self.type = None
""" E.g. patient, expense, depreciation.
Expand All @@ -80,17 +76,16 @@ def __init__(self, jsondict=None, strict=True, **kwargs):
def elementProperties(self):
js = super(Account, self).elementProperties()
js.extend([
("active", "active", period.Period, False, None, False),
("balance", "balance", money.Money, False, None, False),
("coverage", "coverage", AccountCoverage, True, None, False),
("description", "description", str, False, None, False),
("guarantor", "guarantor", AccountGuarantor, True, None, False),
("identifier", "identifier", identifier.Identifier, True, None, False),
("name", "name", str, False, None, False),
("owner", "owner", fhirreference.FHIRReference, False, None, False),
("period", "period", period.Period, False, None, False),
("status", "status", str, False, None, False),
("subject", "subject", fhirreference.FHIRReference, False, None, False),
("partOf", "partOf", fhirreference.FHIRReference, False, None, False),
("servicePeriod", "servicePeriod", period.Period, False, None, False),
("status", "status", str, False, None, True),
("subject", "subject", fhirreference.FHIRReference, True, None, False),
("type", "type", codeableconcept.CodeableConcept, False, None, False),
])
return js
Expand All @@ -114,9 +109,9 @@ def __init__(self, jsondict=None, strict=True, **kwargs):
"""

self.coverage = None
""" The party(s) that are responsible for covering the payment of this
account.
Type `FHIRReference` referencing `Coverage` (represented as `dict` in JSON). """
""" The party(s), such as insurances, that may contribute to the
payment of this account.
Type `FHIRReference` (represented as `dict` in JSON). """

self.priority = None
""" The priority of the coverage in the context of this account.
Expand All @@ -134,9 +129,10 @@ def elementProperties(self):


class AccountGuarantor(backboneelement.BackboneElement):
""" Responsible for the account.
""" The parties ultimately responsible for balancing the Account.
Parties financially responsible for the account.
The parties responsible for balancing the account if other payment options
fall short.
"""

resource_type = "AccountGuarantor"
Expand All @@ -155,10 +151,10 @@ def __init__(self, jsondict=None, strict=True, **kwargs):

self.party = None
""" Responsible entity.
Type `FHIRReference` referencing `Patient, RelatedPerson, Organization` (represented as `dict` in JSON). """
Type `FHIRReference` (represented as `dict` in JSON). """

self.period = None
""" Guarrantee account during.
""" Guarantee account during.
Type `Period` (represented as `dict` in JSON). """

super(AccountGuarantor, self).__init__(jsondict=jsondict, strict=strict, **kwargs)
Expand Down Expand Up @@ -186,10 +182,6 @@ def elementProperties(self):
from . import identifier
except ImportError:
identifier = sys.modules[__package__ + '.identifier']
try:
from . import money
except ImportError:
money = sys.modules[__package__ + '.money']
try:
from . import period
except ImportError:
Expand Down

0 comments on commit ac35489

Please sign in to comment.