Skip to content

Commit

Permalink
delete unused methods, fix one URL screwed up in rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
saulakravitz committed Jan 28, 2025
1 parent 7795cd0 commit eac18b5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
2 changes: 1 addition & 1 deletion projects/BFDR/NatalityRecord_submissionProperties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

/// <summary>
Expand Down
14 changes: 0 additions & 14 deletions projects/VitalRecord/VitalRecord_util.cs
Original file line number Diff line number Diff line change
Expand Up @@ -898,13 +898,6 @@ protected static FhirDateTime ConvertDateToFhirDateTime(Date date)
return dt;
}

/// <summary>Returns a Date object parsed from the given FhirDateTime.</summary>
protected static Date ConvertFhirDateTimeToDate(FhirDateTime dateTime)
{
Date newDate = ConvertToDate(dateTime?.Value) ?? new Date();
newDate.Extension = dateTime?.Extension;
return newDate;
}

/// <summary>Gets the specified date element based on the ExtensionURL.PartialDate from the given
/// FhirDate, checking in the value and PartialDate extension, and assuming there
Expand Down Expand Up @@ -1313,13 +1306,6 @@ private static Extension BuildUnknownPartialDateTime(string partialDateURL)
return GetPartialDate(extension, partURL);
}

/// <summary>Convert a time stamp to a datetime stamp using the earliest allowed date.</summary>
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);
}

/// <summary>Extract the hour.</summary>
protected int FhirTimeHour(Time value)
{
Expand Down

0 comments on commit eac18b5

Please sign in to comment.