Skip to content

Commit

Permalink
🐛 fixes made for python2 (replace BackboneElement with Element)
Browse files Browse the repository at this point in the history
  • Loading branch information
nazrulworld committed Apr 11, 2020
1 parent c43b2a5 commit 5145f8d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
11 changes: 6 additions & 5 deletions fhir/resources/dosage.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
Build ID: 9346c8cc45
Last updated: 2019-11-01T09:29:23.356+11:00
"""


import sys

from . import backboneelement, element
if sys.version.startswith("2"):
from .element import Element as BaseDosage
else:
from .backboneelement import BackboneElement as BaseDosage
from . import element


class Dosage(backboneelement.BackboneElement):
class Dosage(BaseDosage):
""" How the medication is/was taken or should be taken.
Indicates how the medication is/was taken or should be taken by the
Expand Down
11 changes: 6 additions & 5 deletions fhir/resources/timing.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
Build ID: 9346c8cc45
Last updated: 2019-11-01T09:29:23.356+11:00
"""


import sys

from . import backboneelement, element
if sys.version.startswith("2"):
from .element import Element as BaseTiming
else:
from .backboneelement import BackboneElement as BaseTiming
from . import element


class Timing(backboneelement.BackboneElement):
class Timing(BaseTiming):
""" A timing schedule that specifies an event that may occur multiple times.
Specifies an event that may occur multiple times. Timing schedules are used
Expand Down

0 comments on commit 5145f8d

Please sign in to comment.