Closed Dokotela closed 1 month ago
@Dokotela wow thank you for that PR! I will have a look and integrate it! Do not hesitate to add the results of the transformations.
Alright, almost done. I had a question on 4 of them though that I wanted to run past you.
{"resourceType":"TRight"}
. Again, the best I can tell is that it's running into issues with the DependentGroups, but my Java isn't good enough to explain why.Alright, almost done. I had a question on 4 of them though that I wanted to run past you.
- 1b - I get an error when trying to run it on matchbox. I also get an error in my tests, but not when I run on dotnet. I'm not sure what's going on with this one.
Yes, this is known issue, I think it is because it does not know the primitive type string, I did not find a solution yet but it should be fixed, I agree.
- 4b - this is more just a question for myself, I think the answer I've supplied is correct. When the map file is converted into a StructureMap, it creates a FHIRPath expression, . But in FHIRPath, if something is surrounded by single quotes, wouldn't this make it an Identifier?
- 7b - Similar to the issue with 1b. Currently its saying it doesn't recognize the canonical url, but previously it was giving me an error about dependent groups.
- 7 - it doesn't give me an error, but the result I get from running it is just
{"resourceType":"TRight"}
. Again, the best I can tell is that it's running into issues with the DependentGroups, but my Java isn't good enough to explain why.
I will have a loot at those too, thanks a lot!
@Dokotela
4b - this is more just a question for myself, I think the answer I've supplied is correct. When the map file is converted into a StructureMap, it creates a FHIRPath expression, . But in FHIRPath, if something is surrounded by single quotes, wouldn't this make it an Identifier?
The problem with 4b is, that isInteger is not a valid FHIR Path function, I added a comment to it: https://github.com/ahdis/fhir-mapping-tutorial/blob/master/maptutorial/step4/map/step4b.map
7 - it doesn't give me an error, but the result I get from running it is just {"resourceType":"TRight"}. Again, the best I can tell is that it's running into issues with the DependentGroups, but my Java isn't good enough to explain why.
If an input type is defined as 0..* it has to be in an array in json, i fixed this on the latest master
I integrated all the tutorial maps as integration tests to matchbox and had to correct a few things, but now except our friend 1b everything runs through.
Thanks a lot for providing the additional maps and resources!
I was doing this for myself to do some testing, and thought it might be helpful for others as well. I've Been going through the tutorial and trying to standardize files and output.
If all of these updates look reasonable, I was planning on adding updated StructureMaps in XML and JSON. I could also add the results for all of the transformations if you think it would be helpful to have those as files in the repository.