fhir-parser
fhir-parser copied to clipboard
Unable to run generate.py without error
Similar to #33
"Out of the box"
- clone and cd into fresh repo, pip install -r requirements
- copy ./Defaults/settings.py & mappings.py to ../
- cd into ./Samples
- run ./generate.py
Got.. Exception: Unable to create a member name for enum '!=' in http://hl7.org/fhir/questionnaire-enable-operator. You may need to add '!=' to mappings.enum_map
So I went ahead and added '!=': 'ne" to mappings.enum (actually had to change both ./Default/mappings.py and ../mappings.py
Now I run generate and it appears to create all the models but fails during unit test creation:
Traceback (most recent call last):
File "./generate.py", line 31, in
Any ideas what I am doing wrong? My guess is it has something to with me adding '!=': 'ne'