diff --git a/projects/BFDR/NatalityRecord_submissionProperties.cs b/projects/BFDR/NatalityRecord_submissionProperties.cs index 1889b61a..2c81e1ff 100644 --- a/projects/BFDR/NatalityRecord_submissionProperties.cs +++ b/projects/BFDR/NatalityRecord_submissionProperties.cs @@ -230,7 +230,7 @@ protected string GetBirthTime() } } // If it's not there, check for a PartialDateTime. - return this.GetPartialTime(this.Subject.BirthDateElement.GetExtension(VR.ExtensionURL.PartialDateTimeVR)); + return this.GetPartialTime(this.Subject.BirthDateElement.GetExtension(VR.ExtensionURL.PartialDateTime)); } /// diff --git a/projects/VitalRecord/VitalRecord_util.cs b/projects/VitalRecord/VitalRecord_util.cs index 8d93c9b7..8b5dcefc 100644 --- a/projects/VitalRecord/VitalRecord_util.cs +++ b/projects/VitalRecord/VitalRecord_util.cs @@ -898,13 +898,6 @@ protected static FhirDateTime ConvertDateToFhirDateTime(Date date) return dt; } - /// Returns a Date object parsed from the given FhirDateTime. - protected static Date ConvertFhirDateTimeToDate(FhirDateTime dateTime) - { - Date newDate = ConvertToDate(dateTime?.Value) ?? new Date(); - newDate.Extension = dateTime?.Extension; - return newDate; - } /// Gets the specified date element based on the ExtensionURL.PartialDate from the given /// FhirDate, checking in the value and PartialDate extension, and assuming there @@ -1313,13 +1306,6 @@ private static Extension BuildUnknownPartialDateTime(string partialDateURL) return GetPartialDate(extension, partURL); } - /// Convert a time stamp to a datetime stamp using the earliest allowed date. - protected FhirDateTime ConvertFhirTimeToFhirDateTime(Time value) - { - return new FhirDateTime(DateTimeOffset.MinValue.Year, DateTimeOffset.MinValue.Month, DateTimeOffset.MinValue.Day, - FhirTimeHour(value), FhirTimeMin(value), FhirTimeSec(value), TimeSpan.Zero); - } - /// Extract the hour. protected int FhirTimeHour(Time value) {