Skip to content

Commit

Permalink
🔖 documentation updated, flake8 cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
nazrulworld committed Sep 24, 2020
1 parent d68c633 commit 8d5d16b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
9 changes: 2 additions & 7 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@
History
=======

6.0.0b5 (unreleased)
--------------------

Fixes

- Fixes URL validation in the case where a primitive type is used as URL (which is allowed in StructureDefinition).

6.0.0b4 (unreleased)
--------------------

Expand All @@ -22,6 +15,8 @@ Improvements

Fixes

- Fixes URL validation in the case where a primitive type is used as URL (which is allowed in StructureDefinition). [simonvadee]

- Fixes `Issue#19 <https://github.com/nazrulworld/fhir.resources/issues/19>`_ Getting validation errors that don't make sense.


Expand Down
6 changes: 6 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,12 @@ Example: Gender Enum::
Patient.add_root_validator(validate_gender, pre=True)


Reference Validator
~~~~~~~~~~~~~~~~~~~

``fhir.resources`` is also providing enum like list of permitted resource types through field property ``enum_reference_types``.
You can get that list by following above (Enum) approaches ``resource_types = cls.__fields__["managingOrganization"].field_info.extra["enum_reference_types"]``


Migration (from later than ``6.X.X``)
-------------------------------------
Expand Down
1 change: 1 addition & 0 deletions fhir/resources/DSTU2/fhirtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"time",
]


class Primitive:
"""FHIR Primitive Data Type Base Class"""

Expand Down
1 change: 1 addition & 0 deletions fhir/resources/fhirtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"time",
]


class Primitive:
"""FHIR Primitive Data Type Base Class"""

Expand Down

0 comments on commit 8d5d16b

Please sign in to comment.