Skip to content

Commit

Permalink
Address some review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyestein committed Oct 23, 2024
1 parent 4d87fac commit c635859
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,11 @@ public void processFlowsheet(Flowsheet msg, HospitalVisit visit, Instant storedF
* @return new or existing VisitObservationType
*/
public VisitObservationType getOrCreateFromWaveform(WaveformMessage msg, Instant storedFrom) {
// RowState<VisitObservationType, VisitObservationTypeAudit> observationType = getOrCreateObservationTypeState(
VisitObservationType observationType = cache.getOrCreatePersistedObservationType(
msg.getSourceStreamId(), msg.getSourceStreamId(), "waveform", msg.getObservationTime(), storedFrom);
observationType.setName(msg.getMappedStreamDescription());
observationType.setIsRealTime(true);
// XXX: what about updates if the description changes over time?
// Might want to consider updating/auditing if the name/description changes. See Issue #71
return observationType;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ public class Waveform extends TemporalCore<Waveform, WaveformAudit> {
@Column(columnDefinition = "timestamp with time zone", nullable = false)
private Instant observationDatetime;

/**
* \brief Sampling rate of this data series in Hz.
*/
@Column(nullable = false)
private long samplingRate;

Expand Down

0 comments on commit c635859

Please sign in to comment.