From d4b4ebf41fd3f563773866ab5480a9f47f50a4e3 Mon Sep 17 00:00:00 2001 From: Sylvain Viollon Date: Wed, 29 Jun 2016 14:33:00 +0200 Subject: [PATCH] Prepare for an alpha release. --- MANIFEST.in | 4 ++++ README.md | 30 +++++++++++++++++------------- tests/test_validate.py | 4 ++++ 3 files changed, 25 insertions(+), 13 deletions(-) create mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..62ed2c9 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,4 @@ +recursive-include koppeltaal_schema *.py *.xsd +recursive-include tests *.py *.xml +include *.md *.cfg *.py +global-exclude *pyc diff --git a/README.md b/README.md index 7cdf57d..04f13d5 100644 --- a/README.md +++ b/README.md @@ -1,30 +1,34 @@ # koppeltaal-schema -XSD schemas for the FHIR messages used by project Koppeltaal. The files are downloaded from [fhir-all-xsd] +XSD schemas for the FHIR messages used by project Koppeltaal. The +files are downloaded from [fhir-all-xsd] -Koppleltaal is using FHIR DSTU1 version (0.0.82). The Validation process is using the following schemas: +Koppleltaal is using FHIR DSTU1 version (0.0.82). The Validation +process is using the following schemas: - "fhir-atom-single.xsd", +- fhir-atom-single.xsd, - "fhir-single.xsd", +- fhir-single.xsd, - "fhir-xhtml.xsd", +- fhir-xhtml.xsd, - "opensearch.xsd", +- opensearch.xsd, - "opensearchscore.xsd", +- opensearchscore.xsd, - "tombstone.xsd", +- tombstone.xsd, - "xml.xsd", +- xml.xsd, - "xmldsig-core-schema.xsd" +- xmldsig-core-schema.xsd -The "goal" of a CarePlanActivity is a "string" instead of "idref", because the FHIR library used by the Koppeltaal server can't handle this for some reason. +The "goal" of a CarePlanActivity is a "string" instead of "idref", +because the FHIR library used by the Koppeltaal server can't handle +this for some reason. -There is one significant difference: -The XSD files are encapsulated in a Python package for easy inclusion in the Python Koppeltaal adapter. +There is one significant difference: The XSD files are encapsulated in +a Python package for easy inclusion in the Python Koppeltaal adapter. ## How to use? diff --git a/tests/test_validate.py b/tests/test_validate.py index bf48018..3366f46 100644 --- a/tests/test_validate.py +++ b/tests/test_validate.py @@ -16,22 +16,26 @@ def test_validate_xsd(): '''Element 'frop': No matching global declaration available ''' '''for the validation root.''') + def test_create_or_update_careplan(): xml = here.dirpath() / 'examples/CreateOrUpdateCarePlan.xml' stanza = lxml.etree.parse(str(xml)) assert validate(stanza) is None + @pytest.mark.xfail(reason='waiting for Bart M to provide more information') def test_create_or_update_careplan_activity_result(): xml = here.dirpath() / 'examples/CreateOrUpdateCarePlanActivityResult.xml' stanza = lxml.etree.parse(str(xml)) assert validate(stanza) is None + def test_create_or_update_user_message(): xml = here.dirpath() / 'examples/CreateOrUpdateUserMessage.xml' stanza = lxml.etree.parse(str(xml)) assert validate(stanza) is None + @pytest.mark.xfail(reason='waiting for Bart M to provide more information') def test_update_user_care_plan_activity_status(): xml = here.dirpath() / 'examples/UpdateCarePlanActivityStatus.xml'