-
Notifications
You must be signed in to change notification settings - Fork 347
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into dependabot/nuget/MSTest.TestFramework-3.2.0
- Loading branch information
Showing
9 changed files
with
114 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/Hl7.Fhir.ElementModel.R4B.Tests/ParseExtensionsTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using FluentAssertions; | ||
using Hl7.Fhir.ElementModel; | ||
using Hl7.Fhir.Model; | ||
using Hl7.Fhir.Specification.Terminology; | ||
using System.Collections.Generic; | ||
using Xunit; | ||
|
||
namespace Hl7.Fhir.Validation | ||
{ | ||
public partial class ParseExtensionsTests | ||
{ | ||
[Fact] | ||
public void TestParseCodeableReference() | ||
{ | ||
var i = new CodeableReference | ||
{ | ||
Reference = new ResourceReference("http://example.org/fhir/Patient/1"), | ||
Concept = new CodeableConcept("http://nu.nl", "bla") | ||
}; | ||
|
||
var node = i.ToTypedElement(); | ||
var p = node.ParseBindable(); | ||
|
||
p.Should().BeEquivalentTo(new { Coding = new List<Coding> { new Coding("http://nu.nl", "bla") } }); | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
src/Hl7.Fhir.ElementModel.R5.Tests/ParseExtensionsTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using FluentAssertions; | ||
using Hl7.Fhir.ElementModel; | ||
using Hl7.Fhir.Model; | ||
using System.Collections.Generic; | ||
using Xunit; | ||
|
||
namespace Hl7.Fhir.Validation | ||
{ | ||
public partial class ParseExtensionsTests | ||
{ | ||
[Fact] | ||
public void TestParseCodeableReference() | ||
{ | ||
var i = new CodeableReference | ||
{ | ||
Reference = new ResourceReference("http://example.org/fhir/Patient/1"), | ||
Concept = new CodeableConcept("http://nu.nl", "bla") | ||
}; | ||
|
||
var node = i.ToTypedElement(); | ||
var p = node.ParseBindable(); | ||
|
||
p.Should().BeEquivalentTo(new { Coding = new List<Coding> { new Coding("http://nu.nl", "bla") } }); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* Copyright (c) 2024, Firely (info@fire.ly) and contributors | ||
* See the file CONTRIBUTORS for details. | ||
* | ||
* This file is licensed under the BSD 3-Clause license | ||
* available at https://raw.githubusercontent.com/FirelyTeam/firely-net-sdk/master/LICENSE | ||
*/ | ||
|
||
#nullable enable | ||
using Hl7.Fhir.Introspection; | ||
|
||
namespace Hl7.Fhir.Model | ||
{ | ||
[Bindable(true)] | ||
public partial class CodeableReference | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* Copyright (c) 2024, Firely (info@fire.ly) and contributors | ||
* See the file CONTRIBUTORS for details. | ||
* | ||
* This file is licensed under the BSD 3-Clause license | ||
* available at https://raw.githubusercontent.com/FirelyTeam/firely-net-sdk/master/LICENSE | ||
*/ | ||
|
||
#nullable enable | ||
using Hl7.Fhir.Introspection; | ||
|
||
namespace Hl7.Fhir.Model | ||
{ | ||
[Bindable(true)] | ||
public partial class CodeableReference | ||
{ | ||
} | ||
} |