-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #537 from nhsx/ccg_stp_snapshots
ccg stp snapshots
- Loading branch information
Showing
2 changed files
with
135 additions
and
0 deletions.
There are no files selected for viewing
66 changes: 66 additions & 0 deletions
66
config/pipelines/reference_tables/config_ccg_code_mapping.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
69
config/pipelines/reference_tables/config_stp_code_mapping.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
|
||
|
||
|
||
} | ||
} | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|