Skip to content

Commit

Permalink
Merge pull request #67 from answerdigital/bugfix/clear-sus-op
Browse files Browse the repository at this point in the history
Fix bug where SUS OP staging tables could not be cleared.
  • Loading branch information
james-cockayne-ad authored Dec 12, 2024
2 parents 18e3afb + 9c3959c commit 478a189
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions OmopTransformer/SUS/Staging/OP/Clearing/SusOPStagingSchema.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ public SusOPStagingSchema(IOptions<Configuration> configuration, ILogger<SusAPCS

protected override string[] ClearStagingSql =>
[
"if object_id('omop_staging.sus_OP_ICDDiagnosis') is not null begin delete oomop_staging.sus_OP_ICDDiagnosis end;",
"if object_id('omop_staging.sus_OP_ReadDiagnosis') is not null begin delete oomop_staging.sus_OP_ReadDiagnosis end;",
"if object_id('omop_staging.sus_OP_OPCSProcedure') is not null begin delete oomop_staging.sus_OP_OPCSProcedure end;",
"if object_id('omop_staging.sus_OP_ReadProcedure') is not null begin delete oomop_staging.sus_OP_ReadProcedure end;",
"if object_id('omop_staging.sus_OP') is not null begin delete oomop_staging.sus_OP end;",
"if object_id('omop_staging.sus_OP_ICDDiagnosis') is not null begin delete omop_staging.sus_OP_ICDDiagnosis end;",
"if object_id('omop_staging.sus_OP_ReadDiagnosis') is not null begin delete omop_staging.sus_OP_ReadDiagnosis end;",
"if object_id('omop_staging.sus_OP_OPCSProcedure') is not null begin delete omop_staging.sus_OP_OPCSProcedure end;",
"if object_id('omop_staging.sus_OP_ReadProcedure') is not null begin delete omop_staging.sus_OP_ReadProcedure end;",
"if object_id('omop_staging.sus_OP') is not null begin delete omop_staging.sus_OP end;",
];
}

0 comments on commit 478a189

Please sign in to comment.