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

Get patient for Argonaut Sprint 1 test from server, rather than passe… #19

Merged
merged 1 commit into from Dec 11, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions lib/tests/suites/argonaut_sprint_1_test.rb
Expand Up @@ -29,7 +29,6 @@ def initialize(client1, client2=nil)
end

def setup
@id = ENV['patient_id']
@searchParams = [:name, :family, :given, :identifier, :gender, :birthdate]
@rc = FHIR::Patient
end
Expand Down Expand Up @@ -65,10 +64,12 @@ def define_metadata(method)
validates resource: "Patient", methods: ["read", "search"]
}

@id = @client.read_feed(@rc).resource.entry.first.resource.xmlId

reply = @client.read(FHIR::Patient, @id)
assert_response_ok(reply)
assert_equal @id, reply.id, 'Server returned wrong patient.'
@patient = reply.resource.get_by_id(@id)
@patient = reply.resource
assert @patient, "could not get patient by id: #{@id}"
warning { assert_valid_resource_content_type_present(reply) }
warning { assert_last_modified_present(reply) }
Expand Down