Skip to content

Commit 7ded2bd

Browse files
committed
Careplan.category.coding should be wrapped and handled as an array
1 parent 36e21c9 commit 7ded2bd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/tests/suites/connectathon_care_plan_track.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def setup
3737
# Create some cancer-category care plans
3838
@num_cancer_care_plans = rand(1..3)
3939
@cancer_care_plan_category = FHIR::STU3::CodeableConcept.new(text: "Cancer care plan")
40-
@cancer_care_plan_category.coding = FHIR::STU3::Coding.new(code: "395082007", system: "http://snomed.info/sct", display: "Cancer care plan")
40+
@cancer_care_plan_category.coding = [FHIR::STU3::Coding.new(code: "395082007", system: "http://snomed.info/sct", display: "Cancer care plan")]
4141
@num_cancer_care_plans.times do |t|
4242
care_plan = @resources.generate(FHIR::STU3::CarePlan, 3)
4343
care_plan.subject = patient.to_reference
@@ -129,7 +129,7 @@ def teardown
129129

130130
reply.resource.entry.each do |entry|
131131
assert entry.resource.subject.equals?(@records["patient"].to_reference), "care plan #{entry.resource.id} subject ID doesn't match given subject ID #{@records["patient"].to_reference}"
132-
assert entry.resource.category.first.coding.first.equals?(@cancer_care_plan_category.coding), "care plan category code doesn't match cancer category code #{@cancer_care_plan_category} (#{entry.resource.category.first.coding.first.mismatch(@cancer_care_plan_category.coding)})"
132+
assert entry.resource.category.first.coding.first.equals?(@cancer_care_plan_category.coding.first), "care plan category code doesn't match cancer category code #{@cancer_care_plan_category} (#{entry.resource.category.first.coding.first.mismatch(@cancer_care_plan_category.coding.first)})"
133133
end
134134
end
135135

0 commit comments

Comments
 (0)