Skip to content

Commit

Permalink
Changed Assertion of test TestSelectDifferentQuantities
Browse files Browse the repository at this point in the history
  • Loading branch information
marcovisserFurore committed Jan 26, 2021
1 parent 0b50d7a commit 2acfa01
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion common
26 changes: 13 additions & 13 deletions src/Hl7.FhirPath.R4.Tests/PocoTests/FhirPathTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -282,26 +282,26 @@ public void TestSelectDifferentQuantities()
{
Id = "test",
Status = ObservationStatus.Final,
Code = new CodeableConcept() { Text = "test"},
Code = new CodeableConcept() { Text = "test" },
Value = new Quantity() { Value = 1, Code = "%", System = "http://unitsofmeasure.org" },
Component = new List<Observation.ComponentComponent>()
{
Component = new List<Observation.ComponentComponent>()
{
new Observation.ComponentComponent()
{
Code = new CodeableConcept() { Text = "test"},
Value = new Quantity()
{
Value = 1,
Code = "L/min",
System = "http://unitsofmeasure.org"
}
}
{
Code = new CodeableConcept() { Text = "test"},
Value = new Quantity()
{
Value = 1,
Code = "L/min",
System = "http://unitsofmeasure.org"
}
}
}
};

var typedElement = obs.ToTypedElement();
var result = typedElement.Select("(Observation.value as Quantity) | (Observation.component.value as Quantity)");
Assert.AreEqual(1, result.Count());
Assert.AreEqual(2, result.Count());
}
}
}

0 comments on commit 2acfa01

Please sign in to comment.