Skip to content
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

Handle CodeableReferences that have a reference, not a code. #69

Merged
merged 6 commits into from
Feb 16, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixed test
mmsmits committed Feb 14, 2024

Verified

This commit was signed with the committer’s verified signature.
SWvheerden SW van Heerden
commit 0afabadcc448cf41629682a1e233f55009ef5358
Original file line number Diff line number Diff line change
@@ -108,7 +108,7 @@ public void TestParseBindableCodeableReference()
{
var i = new Model.CodeableReference
{
Reference = new("http://example.org"),
Reference = new("http://unitsofmeasure.org"),
Concept = new CodeableConcept
{
Text = "Entered text"
@@ -118,10 +118,11 @@ public void TestParseBindableCodeableReference()
new Coding("system", "code"));

var node = i.ToTypedElement();
var c = node.ParseBindable() as CodeableReference;
Assert.NotNull(c);
Assert.Equal(i.Concept.Coding[0].Code, i.Concept.Coding[0].Code);
Assert.Equal("http://unitsofmeasure.org", i.Concept.Coding[0].System);
var c = node.ParseBindable() as CodeableConcept;

Assert.NotNull(node);
Assert.Equal(i.Concept.Coding[0].Code, c.Coding[0].Code);
Assert.Equal("system", c.Coding[0].System);
}

[Fact]