Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

R4: ReadTest can fail if no Patient resources on client #189

Open
pedro-w opened this issue Jul 29, 2020 · 0 comments
Open

R4: ReadTest can fail if no Patient resources on client #189

pedro-w opened this issue Jul 29, 2020 · 0 comments

Comments

@pedro-w
Copy link

pedro-w commented Jul 29, 2020

In the R005 test of the ReadTest, a fatal error can occur:

     ERROR r005_read__summary=text_test: Fatal Error: undefined method `text' for #<FHIR::Bundle:0x000055be105c2168 @id=nil, @meta=nil, @implicitRules=nil, @language=nil, @identifier=nil, @type="searchset", @timestamp=nil, @total=0, @link=[], @entry=[], @signature=nil>
            ----------------------------------------
            /home/p/.rbenv/versions/2.5.8/lib/ruby/gems/2.5.0/gems/fhir_models-4.0.2/lib/fhir_models/bootstrap/model.rb:58:in `method_missing'
            /home/p/plan_executor/lib/tests/suites/read_test.rb:105:in `block in <class:ReadTest>'
            /home/p/plan_executor/lib/tests/suites/base_suite.rb:145:in `instance_eval'

During setup, the code attempts to get a Patient resource from the client under test, otherwise it will create a new one. Unfortunately the created resource is just a local ruby object, it is not created on the client. This causes problems when trying to fetch the resource in test R005 itself.

@pedro-w pedro-w mentioned this issue Jul 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant