Skip to content

Commit

Permalink
fix(canary): fix birth message types (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
smacadam authored Nov 27, 2024
1 parent 063449d commit c7fe3a7
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 8 deletions.
9 changes: 9 additions & 0 deletions projects/Canary/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,34 @@
# Changelog

All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
<a name="5.2.1"></a>
## 5.2.1 11-26-2024

### Fixes
* Fix message type validation for birth submission messages

<a name="5.2.0"></a>
## 5.2.0 11-05-2024

### Features
* Add Fetal Death Record and Messaging tools
* Update BirthRecord Connectathon tests to align with BFDR STU 2.0
* Update VRDR link to point to Canary that supports VRDR STU 2.2

<a name="5.1.1"></a>
## 5.1.1

### Features
* Change year of birth to 2022 or higher for birth Connectathon test records

<a name="5.1.0"></a>
## 5.1.0

### Features
* Add null BFDR test case to Connectathon records.

<a name="5.0.0"></a>
## 5.0.0

### Features
* BFDR Test Connectathon records are now present and supported for record and message testing in Canary.
4 changes: 2 additions & 2 deletions projects/Canary/ClientApp/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const baseUrl = document.getElementsByTagName('base')[0].getAttribute('href');

//window.API_URL = 'http://localhost:5000';
window.API_URL = '';
window.VERSION = '5.2.0';
window.VERSION_DATE = 'November 5, 2024';
window.VERSION = '5.2.1';
window.VERSION_DATE = 'November 26, 2024';
window.VRDR_VERSION = '5.0.0';
window.BFDR_VERSION = '1.0.0-preview.9';
window.VRDR_VERSION_DATE = 'August 15, 2023';
Expand Down
6 changes: 3 additions & 3 deletions projects/Canary/Models/CanaryBirthMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ public CanaryBirthMessage(Record record, String type)
switch (type)
{
case "Submission":
case "http://nchs.cdc.gov/bfdr_submission":
case "http://nchs.cdc.gov/birth_submission":
message = new BirthRecordSubmissionMessage(br);
break;
case "Update":
case "http://nchs.cdc.gov/bfdr_submission_update":
case "http://nchs.cdc.gov/birth_submission_update":
message = new BirthRecordUpdateMessage(br);
break;
case "Void":
case "http://nchs.cdc.gov/bfdr_submission_void":
case "http://nchs.cdc.gov/birth_submission_void":
message = new BirthRecordVoidMessage(br);
break;
default:
Expand Down
6 changes: 3 additions & 3 deletions projects/Canary/Models/CanaryFetalDeathMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ public CanaryFetalDeathMessage(Record record, String type)
// switch (type)
// {
// case "Submission":
// case "http://nchs.cdc.gov/bfdr_submission":
// case "http://nchs.cdc.gov/fd_submission":
// message = new BirthRecordSubmissionMessage(br);
// break;
// case "Update":
// case "http://nchs.cdc.gov/bfdr_submission_update":
// case "http://nchs.cdc.gov/fd_submission_update":
// message = new BirthRecordUpdateMessage(br);
// break;
// case "Void":
// case "http://nchs.cdc.gov/bfdr_submission_void":
// case "http://nchs.cdc.gov/fd_submission_void":
// message = new BirthRecordVoidMessage(br);
// break;
// default:
Expand Down

0 comments on commit c7fe3a7

Please sign in to comment.