-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiversion #69
Multiversion #69
Conversation
@olbrich or @wesrich -- thoughts on this? We are getting pressure to get a version of projectcrucible.org up that supports multiple versions simultaneously. This will help us achieve this (using namespacing) in the short term... understanding that a better solution might be implemented in the long term. |
@jawalonoski -- I'm having trouble with the model extensions on the client. I get these errors when trying to do a create on a model:
I think the metaprogramming you did to appease rubocop caused this issue. Changing "handle_responses" to public fixes the problem, but I don't know if we want to do that. |
@jawalonoski -- I added at test for model extensions. Also, I added a test for an issue I found in ClientReply. Looks like we have an instance variable that is supposed to track the fhir_version, but I don't think we actually set it to anything other than stu3 in practice. Can we either get away with not needing to know the fhir_version in there, or figure out some way of passing that information in that makes sense and isn't too cumbersome? |
Also added some tests for checking the accept and content-type headers. I think the right behavior should be to send the old content-type/accepts to dstu2 servers, and the new content-type/accepts to stu3 servers. It isn't currently doing that though. |
Transactions have references to FHIR::Bundle, but it should take the fhir version into account so that it gets the namespace right. |
Other FHIR Operations have the same issues. Will fix... |
FYI, the code climate "2 issues to fix" is a complaint of 2 lines of duplicated code within a module -- one version at an instance level, and the other at a class level. This is the result of allowing both |
History format fix
Fix the fhir:console task in windows.
This pull request adds the capability for the client to support both
STU3
(default) andDSTU2
.This is a short-term solution to move our dependent projects forward until a more robust multi-version approach can be developed.
The client defaults to
STU3
but can be switched toDSTU2
or it can also attempt to autodetect the FHIR version based on themetadata
endpoint.