Skip to content

Commit

Permalink
Merge pull request #537 from nhsx/ccg_stp_snapshots
Browse files Browse the repository at this point in the history
ccg stp snapshots
  • Loading branch information
Evop-hub authored Oct 12, 2023
2 parents f585d30 + 0dd416e commit 5e8cee1
Show file tree
Hide file tree
Showing 2 changed files with 135 additions and 0 deletions.
66 changes: 66 additions & 0 deletions config/pipelines/reference_tables/config_ccg_code_mapping.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"metadata": {
"products": [
{
"product_name": "Reference Data",
"topic": "ccg_code_mapping",
"metrics": [
{
"id": "",
"full_name": "Reference table with ccg code mapping",
"short_name":"ccg_code_mapping"
}
]
}
]
},
"pipeline": {
"name": "trigger_ccg_code_mapping",
"folder": "reference_tables/stp_code_mapping/",
"ingestion": {
},
"raw": {
"source_dbo": "dbo",
"source_table": "ccg_code_mapping_snapshot",
"source_query": "SELECT * FROM ccg_code_mapping_snapshot;",
"sink_path": "raw/ncdr_etp/adf_v2/table/ccg_code_mapping/snapshot/",
"sink_file": "table_ccg_code_mapping_snapshot.parquet"
},
"proc": {
"source_path":"raw/ncdr_etp/adf_v2/table/ccg_code_mapping/snapshot/",
"source_file": "table_ccg_code_mapping_snapshot.parquet",
"source_schema": [
{"name": "[ONS CCG code]", "type": "String"},
{"name": "[CCG name]", "type": "String"},
{"name": "[ODS CCG code]", "type": "String"}

],
"sink_path": "proc/sources/ncdr_etp/adf_v2/table/ccg_code_mapping/snapshot/",
"sink_file": "table_ccg_code_mapping_snapshot.parquet"
},
"project": {
"source_path": "proc/sources/ncdr_etp/adf_v2/table/ccg_code_mapping/snapshot/",
"source_file": "table_ccg_code_mapping_snapshot.parquet",
"sink_path": "proc/projects/reference_tables/ods_codes/ccg_code_mapping/",
"sink_file": "table_ccg_code_mapping_snapshot.parquet"
},
"staging":[
{
"metric": "ccg_code_mapping_snapshot",
"stored_procedure": "[dbo].[stored_proc_ccg_code_mapping_snapshot]",
"source_path": "proc/projects/reference_tables/ods_codes/ccg_code_mapping/",
"source_file": "table_ccg_code_mapping_snapshot.parquet",
"sink_table": "ccg_code_mapping_snapshot"
}
]



}
}






69 changes: 69 additions & 0 deletions config/pipelines/reference_tables/config_stp_code_mapping.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"metadata": {
"products": [
{
"product_name": "Reference Data",
"topic": "stp_code_mapping",
"metrics": [
{
"id": "",
"full_name": "Reference table with stp code mapping",
"short_name":"stp_code_mapping"
}
]
}
]
},
"pipeline": {
"name": "trigger_stp_code_mapping",
"folder": "reference_tables/stp_code_mapping/",
"ingestion": {
},
"raw": {
"source_dbo": "dbo",
"source_table": "stp_code_mapping_snapshot",
"source_query": "SELECT * FROM stp_code_mapping_snapshot;",
"sink_path": "raw/ncdr_etp/adf_v2/table/stp_code_mapping/snapshot/",
"sink_file": "table_stp_code_mapping_snapshot.parquet"
},
"proc": {
"source_path":"raw/ncdr_etp/adf_v2/table/stp_code_mapping/snapshot/",
"source_file": "table_stp_code_mapping_snapshot.parquet",
"source_schema": [
{"name": "[ONS STP code]", "type": "String"},
{"name": "[STP name]", "type": "String"},
{"name": "[ODS STP code]", "type": "String"}

],
"sink_path": "proc/sources/ncdr_etp/adf_v2/table/stp_code_mapping/snapshot/",
"sink_file": "table_stp_code_mapping_snapshot.parquet"
},
"project": {
"source_path": "proc/sources/ncdr_etp/adf_v2/table/stp_code_mapping/snapshot/",
"source_file": "table_stp_code_mapping_snapshot.parquet",
"sink_path": "proc/projects/reference_tables/ods_codes/stp_code_mapping/",
"sink_file": "table_stp_code_mapping_snapshot.parquet"
},
"staging":[
{
"metric": "stp_code_mapping_snapshot",
"stored_procedure": "[dbo].[stored_proc_stp_code_mapping_snapshot]",
"source_path": "proc/projects/reference_tables/ods_codes/stp_code_mapping/",
"source_file": "table_stp_code_mapping_snapshot.parquet",
"sink_table": "stp_code_mapping_snapshot"
}
]



}
}









0 comments on commit 5e8cee1

Please sign in to comment.