Skip to content

Commit

Permalink
Merge pull request #89 from answerdigital/fix/condition-prodecure-occ…
Browse files Browse the repository at this point in the history
…urrence

add condition and procedure occurrence fixes
  • Loading branch information
james-cockayne-ad authored Jan 16, 2025
2 parents 543d37b + 14a4ac5 commit 4f29280
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,21 @@ internal class CdsConditionOccurrence : OmopConditionOccurrence<CdsConditionOccu
[Transform(typeof(DateConverter), nameof(Source.CDSActivityDate))]
public override DateTime? condition_start_date { get; set; }

[Transform(typeof(DateConverter), nameof(Source.CDSActivityDate))]
public override DateTime? condition_start_datetime { get; set; }

[Transform(typeof(DateConverter), nameof(Source.CDSActivityDate))]
public override DateTime? condition_end_date { get; set; }

[Transform(typeof(DateConverter), nameof(Source.CDSActivityDate))]
public override DateTime? condition_end_datetime { get; set; }

[CopyValue(nameof(Source.RecordConnectionIdentifier))]
public override string? RecordConnectionIdentifier { get; set; }

[CopyValue(nameof(Source.DiagnosisCode))]
public override string? condition_source_value { get; set; }

[ConstantValue(32020, "EHR encounter diagnosis")]
[ConstantValue(32818, "EHR administration record")]
public override int? condition_type_concept_id { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ internal class CdsProcedureOccurrence : OmopProcedureOccurrence<CdsProcedureOccu
[Transform(typeof(DateConverter), nameof(Source.PrimaryProcedureDate))]
public override DateTime? procedure_datetime { get; set; }

[Transform(typeof(DateConverter), nameof(Source.PrimaryProcedureDate))]
public override DateTime? procedure_end_date { get; set; }

[Transform(typeof(DateConverter), nameof(Source.PrimaryProcedureDate))]
public override DateTime? procedure_end_datetime { get; set; }

[ConstantValue(32818, "`EHR Administration record`")]
public override int? procedure_type_concept_id { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,19 @@ internal class SusAPCConditionOccurrence : OmopConditionOccurrence<SusAPCConditi
[Transform(typeof(DateConverter), nameof(Source.CDSActivityDate))]
public override DateTime? condition_start_date { get; set; }

[Transform(typeof(DateConverter), nameof(Source.CDSActivityDate))]
public override DateTime? condition_start_datetime { get; set; }

[Transform(typeof(DateConverter), nameof(Source.CDSActivityDate))]
public override DateTime? condition_end_date { get; set; }

[Transform(typeof(DateConverter), nameof(Source.CDSActivityDate))]
public override DateTime? condition_end_datetime { get; set; }

[CopyValue(nameof(Source.DiagnosisICD))]
public override string? condition_source_value { get; set; }

[ConstantValue(32020, "EHR encounter diagnosis")]
[ConstantValue(32818, "EHR administration record")]
public override int? condition_type_concept_id { get; set; }

[CopyValue(nameof(Source.GeneratedRecordIdentifier))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ internal class SusAPCProcedureOccurrence : OmopProcedureOccurrence<SusAPCProcedu
[Transform(typeof(DateConverter), nameof(Source.PrimaryProcedureDate))]
public override DateTime? procedure_datetime { get; set; }

[Transform(typeof(DateConverter), nameof(Source.PrimaryProcedureDate))]
public override DateTime? procedure_end_date { get; set; }

[Transform(typeof(DateConverter), nameof(Source.PrimaryProcedureDate))]
public override DateTime? procedure_end_datetime { get; set; }

[ConstantValue(32818, "`EHR Administration record`")]
public override int? procedure_type_concept_id { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,18 @@ internal class SusOPConditionOccurrence : OmopConditionOccurrence<SusOPCondition
[Transform(typeof(DateConverter), nameof(Source.CDSActivityDate))]
public override DateTime? condition_start_date { get; set; }

[Transform(typeof(DateConverter), nameof(Source.CDSActivityDate))]
public override DateTime? condition_start_datetime { get; set; }

[Transform(typeof(DateConverter), nameof(Source.CDSActivityDate))]
public override DateTime? condition_end_date { get; set; }

[Transform(typeof(DateConverter), nameof(Source.CDSActivityDate))]
public override DateTime? condition_end_datetime { get; set; }

[CopyValue(nameof(Source.DiagnosisICD))]
public override string? condition_source_value { get; set; }

[ConstantValue(32020, "EHR encounter diagnosis")]
[ConstantValue(32818, "EHR administration record")]
public override int? condition_type_concept_id { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ internal class SusOPProcedureOccurrence : OmopProcedureOccurrence<SusOPProcedure
[Transform(typeof(DateConverter), nameof(Source.AppointmentDate))]
public override DateTime? procedure_datetime { get; set; }

[Transform(typeof(DateConverter), nameof(Source.AppointmentDate))]
public override DateTime? procedure_end_date { get; set; }

[Transform(typeof(DateConverter), nameof(Source.AppointmentDate))]
public override DateTime? procedure_end_datetime { get; set; }

[ConstantValue(32818, "`EHR Administration record`")]
public override int? procedure_type_concept_id { get; set; }

Expand Down

0 comments on commit 4f29280

Please sign in to comment.