Skip to content

Commit

Permalink
Merge pull request #43 from palfrey/travis
Browse files Browse the repository at this point in the history
Add CI
  • Loading branch information
raheelsayeed authored Aug 4, 2020
2 parents 0bcadd5 + 0a8b16f commit 5d2945e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
language: python
script:
- echo "from Default.settings import *" > settings.py
- ./generate.py
1 change: 1 addition & 0 deletions Default/mappings.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
# For enum codes where a computer just cannot generate reasonable names
enum_map = {
'=': 'eq',
'!=': 'ne',
'<': 'lt',
'<=': 'lte',
'>': 'gt',
Expand Down
2 changes: 1 addition & 1 deletion Default/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


# Base URL for where to load specification data from
specification_url = 'http://hl7.org/fhir/2018May/'
specification_url = 'http://hl7.org/fhir/R4'
#specification_url = 'http://build.fhir.org'

# To which directory to download to
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Python FHIR Parser
==================
[![Build Status](https://travis-ci.org/palfrey/fhir-parser.svg?branch=master)](https://travis-ci.org/palfrey/fhir-parser)

A Python FHIR specification parser for model class generation.
If you've come here because you want _Swift_ or _Python_ classes for FHIR data models, look at our client libraries instead:
Expand Down
4 changes: 2 additions & 2 deletions fhirunittest.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,14 @@ class FHIRUnitTestItem(object):

def __init__(self, filepath, path, value, klass, array_item, enum_item):
assert path
assert value is not None
assert value is not None, (filepath, path)
assert klass
self.filepath = filepath # needed for debug logging
self.path = path
self.value = value
self.klass = klass
self.array_item = array_item
self.enum = enum_item['name'] if enum_item is not None else None
self.enum = enum_item.name if enum_item is not None else None

def create_tests(self, controller):
""" Creates as many FHIRUnitTestItem instances as the item defines, or
Expand Down

0 comments on commit 5d2945e

Please sign in to comment.