Skip to content

Commit

Permalink
test(bfdr): adding test for new version of BFDR (#148)
Browse files Browse the repository at this point in the history
Test relates to bug in Steve's fhir-conversion script
  • Loading branch information
ptran265 authored Jul 18, 2024
1 parent 661a08e commit 3587a2a
Show file tree
Hide file tree
Showing 4 changed files with 871 additions and 1 deletion.
1 change: 1 addition & 0 deletions projects/BFDR.Tests/BFDR.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
</ItemGroup>
<ItemGroup>
<None Update="fixtures/json/BasicBirthRecord.json" CopyToOutputDirectory="PreserveNewest" />
<None Update="fixtures/json/BasicBirthRecord2.json" CopyToOutputDirectory="PreserveNewest" />
<None Update="fixtures/json/BirthRecordBabyGQuinn.json" CopyToOutputDirectory="PreserveNewest" />
<None Update="fixtures/json/BirthRecordBabyGQuinnWithEditFlags.json" CopyToOutputDirectory="PreserveNewest" />
<None Update="fixtures/json/BirthRecordBabyGQuinnJurisdiction.json" CopyToOutputDirectory="PreserveNewest" />
Expand Down
9 changes: 8 additions & 1 deletion projects/BFDR.Tests/BirthRecord_Should.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3514,7 +3514,14 @@ public void TestFullBirthRecordImport()
Assert.Null(birthRecord.EmergingIssue8_3);
Assert.Null(birthRecord.EmergingIssue20);
}

[Fact]
public void unknownToAll8sFHIRtoIJETest()
{
Console.WriteLine("Converting fhir to ije!\n\n");
BirthRecord b = new(File.ReadAllText(TestHelpers.FixturePath("fixtures/json/BasicBirthRecord2.json")));
IJEBirth ije1 = new(b, false);
Console.WriteLine(ije1.ToString());
}
}

}
Loading

0 comments on commit 3587a2a

Please sign in to comment.