Professional Documents
Culture Documents
Mapping Sheet1
Mapping Sheet1
[Document Title]
[Doc ID]
STAGE_RX_WK_F
9 for Weekly STAGE_RX_WK_F DATA_SRC_ID Release Table
cat <Fact filename> | grep ^H | STAGE_RX_WK_F DATA_CYCLE_DT Release Table
cut -c 34-41 (this can be
calculated as column 34-41 of
any header record in any file.
Header record is identified by
RECORD_ID='H')
Weekly Fact File Market Definition Code RecordID = 'D' and Remove cat <Fact filename> | grep ^H | STAGE_RX_WK_F VNDR_SRC_MRKT_ID Release Table
leading and trailing blank cut -c 27-28(this can be
spaces using LTRIM(RTRIM()) calculated as column 27-28 of
function on all the columns header record of one file). It
coming from source file. should have one value for each
market(file)
Weekly Fact File CMF10 Direct Pull STAGE_RX_WK_F VNDR_PROD_PKG_ID Release Table
Weekly Fact File IMS Doctor Number substr(IMS Doctor Number,4) STAGE_RX_WK_F VNDR_PRSCRBR_ID Release Table
(take values from 4th character
till last)
Weekly Fact File Retail/Mail Order Direct Pull STAGE_RX_WK_F VNDR_CHNNL_ID Release Table
Weekly Fact File Week Ending Date Direct Pull STAGE_RX_WK_F VNDR_TM_PER_ID Release Table
Weekly Fact File Product Group Code Direct Pull STAGE_RX_WK_F VNDR_PROD_GROUP_ID Release Table
Weekly Fact File Product Group Name Direct Pull STAGE_RX_WK_F PROD_GROUP_NM Release Table
Weekly Fact File Record ID Direct Pull STAGE_RX_WK_F RECORD_ID Release Table
Weekly Fact File Script/Unit Count- New Direct Pull STAGE_RX_WK_F NRX_CNT Release Table
Weekly Fact File Script/Unit Count- Total Direct Pull STAGE_RX_WK_F TRX_CNT Release Table
Weekly Fact File Source Code Direct Pull STAGE_RX_WK_F VNDR_SRC_CD Release Table
Weekly Fact File Specialty Code Direct Pull STAGE_RX_WK_F VNDR_SPCLTY_ID Release Table
PRSCRBR_WK
9 for Weekly PRSCRBR_WK DATA_SRC_ID Release Table
STAGE_RX_WK_F DATA_CYCLE_DT Release Table Direct Pull PRSCRBR_WK DATA_CYCLE_DT Release Table
Lookup VNDR_PRSCRBR_ID, PRSCRBR_WK PRSCRBR_ID Release Table
DATA_SRC_ID on
VNDR_PRSCRBR_ID ,DATA_S
RC_ID of PRSCRBR_WK table
to retrieve PRSCRBR_ID. If
PRSCRBR_ID is null, then max
value + 1 otherwise reuse the
PRSCRBR_ID.
STAGE_RX_WK_F VNDR_PRSCRBR_ID Release Table Direct Pull PRSCRBR_WK VNDR_PRSCRBR_ID Release Table
STAGE_RX_WK_F VNDR_SPCLTY_ID Release Table PROD_PKG_WK VNDR_SPCLTY_ID Release Table
Business Confidential
1 of 26 Merck & Co., Inc.
Whitehouse Station, NJ USA
Document ID:
[Document Title]
[Doc ID]
select distinct
vndr_prscrbr_id,vndr_spclty_id
from STAGE_RX_WK_F(select
STAGE_RX_WK_F VNDR_PRSCRBR_ID Release Table distinct not null values of ims Lookup VNDR_PRSCRBR_ID PRSCRBR_WK FIRST_NM Release Table
prescriber id and ims speciality on VNDR_PRSCRBR_ID of
id) PRSCRBR_MO and retrieve
FIRST_NM,where
DATA_SRC_ID=8. If FIRST_NM
is null, then NULL otherwise
FIRST_NM.
STAGE_RX_WK_F VNDR_PRSCRBR_ID Release Table Lookup VNDR_PRSCRBR_ID PRSCRBR_WK MDDL_NM Release Table
on VNDR_PRSCRBR_ID of
PRSCRBR_MO and retrieve
MDDL_NM,where
DATA_SRC_ID=8. If MDDL_NM
is null, then NULL otherwise
MDDL_NM.
STAGE_RX_WK_F VNDR_PRSCRBR_ID Release Table Lookup VNDR_PRSCRBR_ID PRSCRBR_WK LAST_NM Release Table
on VNDR_PRSCRBR_ID of
PRSCRBR_MO and retrieve
LAST_NM,where
DATA_SRC_ID=8. If LAST_NM
is null, then NULL otherwise
LAST_NM.
Business Confidential
2 of 26 Merck & Co., Inc.
Whitehouse Station, NJ USA
Document ID:
[Document Title]
[Doc ID]
STAGE_RX_WK_F VNDR_PRSCRBR_ID Release Table Lookup VNDR_PRSCRBR_ID PRSCRBR_WK SORT_NM Release Table
on VNDR_PRSCRBR_ID of
PRSCRBR_MO and retrieve
SORT_NM,where
DATA_SRC_ID=8. If SORT_NM
is null, then NULL otherwise
SORT_NM.
STAGE_RX_WK_F VNDR_PRSCRBR_ID Release Table Lookup VNDR_PRSCRBR_ID PRSCRBR_WK DSPLY_NM Release Table
on VNDR_PRSCRBR_ID of
PRSCRBR_MO and retrieve
DSPLY_NM,where
DATA_SRC_ID=8. If
DSPLY_NM is null, then NULL
otherwise DSPLY_NM.
PROD_PKG_WK
9 for Weekly PROD_PKG_WK DATA_SRC_ID Release Table
STAGE_RX_WK_F DATA_CYCLE_DT Release Table select distinct values of Direct Pull PROD_PKG_WK DATA_CYCLE_DT Release Table
vndr_prod_pkg_id and Lookup VNDR_PROD_PKG_ID, PROD_PKG_WK PROD_PKG_ID Release Table
PROD_GROUP_NM DATA_SRC_ID on
VNDR_PROD_PKG_ID,
DATA_SRC_ID of
PROD_PKG_WK table to
retrieve PROD_PKG_ID. If
PROD_PKG_ID is null, then max
value + 1 otherwise reuse the
PROD_PKG_ID.
STAGE_RX_WK_F VNDR_PROD_PKG_ID Release Table Direct Pull PROD_PKG_WK VNDR_PROD_PKG_ID Release Table
Business Confidential
3 of 26 Merck & Co., Inc.
Whitehouse Station, NJ USA
select distinct values of
vndr_prod_pkg_id and
PROD_GROUP_NM
Document ID:
[Document Title]
[Doc ID]
STAGE_RX_WK_F VNDR_PROD_GROUP_ Release Table Direct Pull PROD_PKG_WK VNDR_PROD_GROUP_ID Release Table
ID
STAGE_RX_WK_F PROD_GROUP_NM Release Table Direct Pull PROD_PKG_WK PROD_GROUP_NM Release Table
STAGE_RX_WK_F VNDR_PROD_PKG_ID Release Table Lookup VNDR_PROD_PKG_ID, PROD_PKG_WK PROD_PKG_NM Release Table
DATA_CYCLE_DT on
VNDR_PROD_PKG_ID,
DATA_CYCLE_DT of
PROD_PKG_MO table where
DATA_SRC_ID=8 to retrieve
PROD_PKG_NM.
Business Confidential
5 of 26 Merck & Co., Inc.
Whitehouse Station, NJ USA
Document ID:
[Document Title]
[Doc ID]
SRC_MRKT_WK
select distinct values of 9 for Weekly SRC_MRKT_WK DATA_SRC_ID Release Table
STAGE_RX_WK_F DATA_CYCLE_DT Release Table vndr_src_mrkt_id Direct Pull SRC_MRKT_WK DATA_CYCLE_DT Release Table
Lookup VNDR_SRC_MRKT_ID, SRC_MRKT_WK SRC_MRKT_ID Release Table
DATA_SRC_ID on
VNDR_SRC_MRKT_ID,
DATA_SRC_ID of
SRC_MRKT_WK table to
retrieve SRC_MRKT_ID. If
SRC_MRKT_ID is null, then max
value + 1 otherwise reuse the
SRC_MRKT_ID.
STAGE_RX_WK_F VNDR_SRC_MRKT_ID Release Table Direct Pull SRC_MRKT_WK VNDR_SRC_MRKT_ID Release Table
STAGE_RX_WK_F VNDR_SRC_MRKT_ID Release Table LookupVNDR_SRC_MRKT_ID SRC_MRKT_WK MRKT_NM Release Table
on VNDR_SRC_MRKT_ID of
SRC_MRKT_XREF and fetch
MRKT_NM where
DATA_SRC_ID=9
STAGE_RX_WK_F VNDR_SRC_MRKT_ID Release Table 'NA' SRC_MRKT_WK VNDR_MRKT_TYPE_CD Release Table
STAGE_RX_WK_F VNDR_SRC_MRKT_ID Release Table Lookup VNDR_SRC_MRKT_ID SRC_MRKT_WK SRC_CD Release Table
on VNDR_MRKT_ID of
SRC_MRKT_XREF fetch
SRC_CD where
DATA_SRC_ID=9
STAGE_RX_WK_F VNDR_SRC_MRKT_ID Release Table Lookup VNDR_SRC_MRKT_ID SRC_MRKT_WK MSTR_PROD_ID Release Table
on VNDR_SRC_MRKT_ID of
SRC_MRKT_XREF where
DATA_SRC_ID=9 and retrieve
MSTR_PROD_ID. If
MSTR_PROD_ID is null, then
NULL otherwise
MSTR_PROD_ID.
sysdate(same value for all SRC_MRKT_WK CRTN_DT Release Table
sessions/tables within a module)
CHNNL_WK
Business Confidential
6 of 26 Merck & Co., Inc.
Whitehouse Station, NJ USA
Document ID:
[Document Title]
[Doc ID]
WRK_VNDR_MRKT_DEFN_WK
select distinct values of Lookup VNDR_PROD_PKG_ID WRK_VNDR_MRKT_DEFN_ PROD_PKG_ID Release Table
vndr_src_mrkt_id and and DATA_SRC_ID and WK
vndr_prod_pkg_id DATA_CYCLE_DT on
VNDR_PROD_PKG_ID and
DATA_SRC_ID and
DATA_CYCLE_DT of
PROD_PKG_WK table to
retrieve PROD_PKG_ID
STAGE_RX_WK_F VNDR_SRC_MRKT_ID Release Table Direct pull. WRK_VNDR_MRKT_DEFN_ VNDR_SRC_MRKT_ID Release Table
WK
STAGE_RX_WK_F VNDR_PROD_PKG_ID Release Table Direct pull. WRK_VNDR_MRKT_DEFN_ VNDR_PROD_PKG_ID Release Table
WK
STAGE_RX_WK_F DATA_CYCLE_DT Release Table Direct pull. WRK_VNDR_MRKT_DEFN_ DATA_CYCLE_DT Release Table
WK
9 for Weekly WRK_VNDR_MRKT_DEFN_ DATA_SRC_ID Release Table
WK
sysdate(same value for all WRK_VNDR_MRKT_DEFN_ CRTN_DT Release Table
sessions/tables within a module) WK
PMR_STAGE_DATA_CYCLE_DT
Each module will have 3 9 for Weekly PMR_STAGE_DATA_CYCLE DATA_SRC_ID Release Table
rows. There will be 3 _DT
rows for each module
Business Confidential
7 of 26 Merck & Co., Inc.
Whitehouse Station, NJ USA
Document ID:
[Document Title]
[Doc ID]
RCVD_File
9 for Weekly RCVD_File DATA_SRC_ID Release Table
STAGE_RX_WK_F DATA_CYCLE_DT Release Table Direct Pull RCVD_File DATA_CYCLE_DT Release Table
File Name RCVD_File FILE_NM Release Table
Retrieve max(data_vrsn_nmbr) RCVD_File DATA_VRSN_NMBR Release Table
from RCVD_FILE table. If
max(data_vrsn_nmbr) is null,
then 1 otherwise
max(data_vrsn_nmbr) value + 1.
Business Confidential
8 of 26 Merck & Co., Inc.
Whitehouse Station, NJ USA
Document ID:
[Document Title]
[Doc ID]
RX_WK_F
SRC_MRKT_ID is not null 9 for Weekly RX_WK_F DATA_SRC_ID Release Table
and
PROD_PKG_ID is not null
and
PRSCRBR_ID is not null
and
CHNNL_ID is not null
and
TM_PER_DT is not null
and it contains weeks end
date.
STAGE_RX_WK_F DATA_CYCLE_DT Release Table Direct Pull RX_WK_F DATA_CYCLE_DT Release Table
STAGE_RX_WK_F VNDR_SRC_MRKT_ID Release Table Lookup VNDR_SRC_MRKT_ID, RX_WK_F SRC_MRKT_ID Release Table
DATA_SRC_ID,
DATA_CYCLE_DT on
VNDR_SRC_MRKT_ID,
DATA_SRC_ID,
DATA_CYCLE_DT of
SRC_MRKT_WK to fetch
SRC_MRKT_ID
STAGE_RX_WK_F VNDR_PROD_PKG_ID Release Table Lookup VNDR_PROD_PKG_ID, RX_WK_F PROD_PKG_ID Release Table
DATA_SRC_ID,
DATA_CYCLE_DT on
VNDR_PROD_PKG_ID,
DATA_SRC_ID,
DATA_CYCLE_DT of
PROD_PKG_WK to fetch
PROD_PKG_ID
STAGE_RX_WK_F VNDR_PRSCRBR_ID Release Table Lookup VNDR_PRSCRBR_ID, RX_WK_F PRSCRBR_ID Release Table
DATA_SRC_ID,
DATA_CYCLE_DT on
VNDR_PRSCRBR_ID,
DATA_SRC_ID,
DATA_CYCLE_DT of
PRSCRBR_WK to fetch
PRSCRBR_ID
Business Confidential
9 of 26 Merck & Co., Inc.
Whitehouse Station, NJ USA
Document ID:
[Document Title]
[Doc ID]
RX_WK_F_RJCT
SRC_MRKT_ID is null or 9 for Weekly RX_WK_F_RJCT DATA_SRC_ID Release Table
PROD_PKG_ID is null or
PRSCRBR_ID is null or
CHNNL_ID is null or
TM_PER_DT is null
or TM_PER_DT does not
contains weeks end date
STAGE_RX_WK_F DATA_CYCLE_DT Release Table Direct Pull RX_WK_F_RJCT DATA_CYCLE_DT Release Table
Lookup RX_WK_F_RJCT DATA_VRSN_NMBR Release Table
DATA_SRC_ID,DATA_CYCLE_
DT on
DATA_SRC_ID,DATA_CYCLE_
DT of RCVD_FILE to retrieve
max(DATA_VRSN_NMBR).
STAGE_RX_WK_F VNDR_SRC_MRKT_ID Release Table Direct Pull RX_WK_F_RJCT VNDR_SRC_MRKT_ID Release Table
STAGE_RX_WK_F VNDR_PROD_PKG_ID Release Table Direct Pull RX_WK_F_RJCT VNDR_PROD_PKG_ID Release Table
STAGE_RX_WK_F VNDR_PRSCRBR_ID Release Table Direct Pull RX_WK_F_RJCT VNDR_PRSCRBR_ID Release Table
STAGE_RX_WK_F VNDR_CHNNL_ID Release Table Direct Pull RX_WK_F_RJCT VNDR_CHNNL_ID Release Table
STAGE_RX_WK_F VNDR_TM_PER_ID Release Table Direct Pull RX_WK_F_RJCT VNDR_TM_PER_ID Release Table
STAGE_RX_WK_F VNDR_SRC_MRKT_ID Release Table Lookup VNDR_SRC_MRKT_ID, RX_WK_F_RJCT SRC_MRKT_ID Release Table
DATA_SRC_ID,
DATA_CYCLE_DT on
VNDR_SRC_MRKT_ID,
DATA_SRC_ID,
DATA_CYCLE_DT of
SRC_MRKT_WK to fetch
SRC_MRKT_ID
Business Confidential
10 of 26 Merck & Co., Inc.
Whitehouse Station, NJ USA
Document ID:
[Document Title]
[Doc ID]
STAGE_RX_WK_F VNDR_PRSCRBR_ID Release Table Lookup VNDR_PRSCRBR_ID, RX_WK_F_RJCT PRSCRBR_ID Release Table
DATA_SRC_ID,
DATA_CYCLE_DT on
VNDR_PRSCRBR_ID,
DATA_SRC_ID,
DATA_CYCLE_DT of
PRSCRBR_WK to fetch
PRSCRBR_ID
STAGE_RX_WK_F VNDR_CHNNL_ID Release Table lookup VNDR_CHNNL_ID, RX_WK_F_RJCT CHNNL_ID Release Table
DATA_SRC_ID,
DATA_CYCLE_DT on
VNDR_CHNNL_ID,
DATA_SRC_ID,
DATA_CYCLE_DT of
CHNNL_WK to fetch CHNNL_ID
STAGE_RX_WK_F VNDR_TM_PER_ID Release Table direct pull RX_WK_F_RJCT TM_PER_DT Release Table
STAGE_RX_WK_F NRX_CNT Release Table direct pull RX_WK_F_RJCT NRX_CNT Release Table
STAGE_RX_WK_F TRX_CNT Release Table direct pull RX_WK_F_RJCT TRX_CNT Release Table
sysdate(same value for all RX_WK_F_RJCT CRTN_DT Release Table
sessions/tables within a module)
MATCH_PRSCRBR_WK_D
PRSCRBR_WK and view 1) Include all VNDR records If SRC_ID_TYPE_CD='VNDR' MATCH_PRSCRBR_WK_D SRC_PRSCRBR_ID Release Table
CUST_MSTR_INDVDL_PRSCRBR which are not present in view then
(MSTR data) (SRC_ID_TYPE_CD='VNDR', PRSCRBR_WK.VNDR_PRSCR
MATCH_ROW_CD=0, BR_ID
SRC_PRSCRBR_ID= If SRC_ID_TYPE_CD='MSTR'
PRSCRBR_WK.VNDR_PRSC then
RBR_ID) CUST_MSTR_INDVDL_PRSCR
2) Include all the MSTR BR.PRSCRBR_PARTY_ID
records which are not present
in VNDR VNDR' for records from MATCH_PRSCRBR_WK_D SRC_ID_TYPE_CD Release Table
(SRC_ID_TYPE_CD='MSTR', PRCRBR_WK and 'MSTR' for
MATCH_ROW_CD=3, records from Customer
SRC_PRSCRBR_ID=CUST_M Master(Master) table
STR_INDVDL_PRSCRBR.PRS
CRBR_PARTY_ID) 9 for Weekly MATCH_PRSCRBR_WK_D DATA_SRC_ID Release Table
3) Include all VNDR and MSTR Direct Pull MATCH_PRSCRBR_WK_D DATA_CYCLE_DT Release Table
records where one VNDR 4 for Prescriber Matching MATCH_PRSCRBR_WK_D MATCH_ERROR_TYPE_ID Release Table
record has more than one
MSTR records.
(SRC_ID_TYPE_CD='VNDR', Business Confidential
MATCH_ROW_CD=1, 11 of 26 Merck & Co., Inc.
SRC_PRSCRBR_ID=PRSCRB Whitehouse Station, NJ USA
R_WK.VNDR_PRSCRBR_ID)
and
all matching records of
View(SRC_ID_TYPE_CD='MS
SRC_PRSCRBR_ID=
PRSCRBR_WK.VNDR_PRSC
RBR_ID)
2) Include all the MSTR
records which are not present
Document ID: in VNDR [Document Title]
[Doc ID] (SRC_ID_TYPE_CD='MSTR',
MATCH_ROW_CD=3,
SRC_PRSCRBR_ID=CUST_M
Source System / SMF = = = Target System / SMF
STR_INDVDL_PRSCRBR.PRS
Source Field CRBR_PARTY_ID) = = = Target Field
Field Extraction
3) Include all VNDR Rules
and MSTR Data Validation Rules Data Transformation Rules
Source Table Field Name Description records where one VNDR Target Table Field Name Field Description
record has more than one For VNDR If SRC_ID_TYPE_CD='VNDR' MATCH_PRSCRBR_WK_D MATCH_ROW_CD Release Table
MSTR records. Join then 0,1,2,5
(SRC_ID_TYPE_CD='VNDR', VNDR_PRSCRBR_ID of If SRC_ID_TYPE_CD='MSTR'
MATCH_ROW_CD=1, PRSCRBR_WK with then NULL ,3,6,7.
SRC_PRSCRBR_ID=PRSCRB column
R_WK.VNDR_PRSCRBR_ID) VNDR_PRSCRBR_ID of
and view
all matching records of CUST_MSTR_INDVDL_
View(SRC_ID_TYPE_CD='MS PRSCRBR to retrieve
TR',MATCH_ROW_CD=NULL, PRSCRBR_PARTY_ID.
SRC_PRSCRBR_ID=CUST_M Now depending upon no
STR_INDVDL_PRSCRBR.PRS of
CRBR_PARTY_ID) PRSCRBR_PARTY_ID
4) Include all VNDR and MSTR against
records where more than one VNDR_PRSCRBR_ID ,m
VNDR record has one MSTR atch row_cd is decided.
records. If one
all matching records of VNDR VNDR_PRSCRBR_ID
(SRC_ID_TYPE_CD='VNDR', does not have a match in
MATCH_ROW_CD=2,SRC_P CUST_MSTR_INDVDL_
RSCRBR_ID= PRSCRBR, then
PRSCRBR_WK.VNDR_PRSC MATCH_ROW_Cd=0
RBR_ID) If one
and VNDR_PRSCRBR_ID
matching record of has more than values of
View(SRC_ID_TYPE_CD='MS PRSCRBR_PARTY_ID,
TR',MATCH_ROW_CD=NULL, then match_row_cd=1
SRC_PRSCRBR_ID=CUST_M If more than one
STR_INDVDL_PRSCRBR.PRS VNDR_PRSCRBR_IDs
CRBR_PARTY_ID) have the same
5) Include all VNDR and MSTR PRSCRBR_PARTY_ID,
records where more than one then
VNDR record has more than MATCH_ROW_CD=2
one MSTR records. If more than one
all matching records of VNDR_PRSCRBR_IDs
VNDR(SRC_ID_TYPE_CD='V have more than one MATCH_ROW_CD
NDR',MATCH_ROW_CD=5, values for
SRC_PRSCRBR_ID=PRSCRB If SRC_ID_TYPE_CD='VNDR' MATCH_PRSCRBR_WK_D PRSCRBR_NM Release Table
R_WK.VNDR_PRSCRBR_ID) then PRCRBR_WK.DSPLY_NM
and If SRC_ID_TYPE_CD='MSTR'
all matching records of then
View(SRC_ID_TYPE_CD='MS CUST_MSTR_INDVDL_PRSCR
TR',MATCH_ROW_CD=NULL, BR.FULL_NM
SRC_PRSCRBR_ID=CUST_M
STR_INDVDL_PRSCRBR.PRS
CRBR_PARTY_ID) """" If SRC_ID_TYPE_CD='VNDR' MATCH_PRSCRBR_WK_D FIRST_NM Release Table
6) Include all MSTR record then PRCRBR_WK.FIRST_NM
where one MSTR record has If SRC_ID_TYPE_CD='MSTR'
one VNDR record. then
View(SRC_ID_TYPE_CD='MS CUST_MSTR_INDVDL_PRSCR
TR',MATCH_ROW_CD=6,SRC BR.FIRST_NM
_PRSCRBR_ID=CUST_MSTR
If SRC_ID_TYPE_CD='VNDR' MATCH_PRSCRBR_WK_D MDDL_NM Release Table
_INDVDL_PRSCRBR.PRSCR then PRCRBR_WK.MDDL_NM
BR_PARTY_ID) If SRC_ID_TYPE_CD='MSTR'
7) Include all MSTR record
then
where one MSTR record has CUST_MSTR_INDVDL_PRSCR
more than one VNDR record BR.MDDL_NM
View(SRC_ID_TYPE_CD='MS
TR',MATCH_ROW_CD=7,SRC
_PRSCRBR_ID=CUST_MSTR
_INDVDL_PRSCRBR.PRSCR Business Confidential
BR_PARTY_ID) 12 of 26 Merck & Co., Inc.
Whitehouse Station, NJ USA
CRBR_PARTY_ID) """"
6) Include all MSTR record
where one MSTR record has
one VNDR record.
View(SRC_ID_TYPE_CD='MS
Document ID: TR',MATCH_ROW_CD=6,SRC
_PRSCRBR_ID=CUST_MSTR [Document Title]
[Doc ID]
_INDVDL_PRSCRBR.PRSCR
BR_PARTY_ID)
Source System / SMF =
7) Include all MSTR record = = Target System / SMF
Source Field where one MSTR = record has = = Target Field
Field more than
Extraction
one VNDRRules
record Data Validation Rules Data Transformation Rules
Source Table Field Name Description View(SRC_ID_TYPE_CD='MS Target Table Field Name Field Description
TR',MATCH_ROW_CD=7,SRC If SRC_ID_TYPE_CD='VNDR' MATCH_PRSCRBR_WK_D LAST_NM Release Table
_PRSCRBR_ID=CUST_MSTR then PRCRBR_WK.LAST_NM
_INDVDL_PRSCRBR.PRSCR If SRC_ID_TYPE_CD='MSTR'
BR_PARTY_ID) then
CUST_MSTR_INDVDL_PRSCR
BR.LAST_NM
MATCH_PRSCRBR_ASSN_WK
STAGE_RX_WK_F VNDR_PRSCRBR_ID Release Table Join Direct pull MATCH_PRSCRBR_ASSN_ SRC_VNDR_PRSCRBR_ID Release Table
Match_row_cd=1,2,5 VNDR_PRSCRBR_ID WK
with column VNDR MATCH_PRSCRBR_ASSN_ SRC_VNDR_ID_TYPE_CD Release Table
VNDR_ORG_ID of view WK
CUST_MSTR_INDVDL_
9 for Weekly MATCH_PRSCRBR_ASSN_ DATA_SRC_ID Release Table
PRSCRBR to retrieve
WK
PRSCRBR_PARTY_ID.
STAGE_RX_WK_F DATA_CYCLE_DT Release Table Now depending upon no Direct pull MATCH_PRSCRBR_ASSN_ DATA_CYCLE_DT Release Table
of WK
CUST_MSTR_INDVDL_PRSCRBR PRSCRBR_PARTY_ID PRSCRBR_PARTY_ID Direct pull MATCH_PRSCRBR_ASSN_ SRC_MSTR_PRSCRBR_ID Release Table
against WK
VNDR_PRSCRBR_ID ,m MSTR MATCH_PRSCRBR_ASSN_ SRC_MSTR_ID_TYPE_CD Release Table
atch row_cd is decided. WK
If one
sysdate(same value for all MATCH_PRSCRBR_ASSN_ CRTN_DT Release Table
sessions/tables within a module) WK
MATCH_PRSCRBR_WK_F
MATCH_PRSCRBR_WK_D SRC_PRSCRBR_ID Release Table RX_WK_F.PRSCRBR_ID=PR Direct Pull MATCH_PRSCRBR_WK_F SRC_PRSCRBR_ID Release Table
MATCH_PRSCRBR_WK_D SRC_ID_TYPE_CD Release Table SCRBR_WK.PRSCRBR_ID Direct Pull MATCH_PRSCRBR_WK_F SRC_ID_TYPE_CD Release Table
RX_WK_F PROD_PKG_ID Release Table AND Direct Pull MATCH_PRSCRBR_WK_F PROD_PKG_ID Release Table
RX_WK_F DATA_SRC_ID Release Table RX_WK_F.DATA_SRC_ID=PR Direct Pull MATCH_PRSCRBR_WK_F DATA_SRC_ID Release Table
SCRBR_WK.DATA_SRC_ID
RX_WK_F DATA_CYCLE_DT Release Table Direct Pull MATCH_PRSCRBR_WK_F DATA_CYCLE_DT Release Table
AND
MATCH_PRSCRBR_WK_D MATCH_ERROR_TYPE_IRelease Table RX_WK_F.DATA_CYCLE_DT Direct Pull MATCH_PRSCRBR_WK_F MATCH_ERROR_TYPE_ID Release Table
RX_WK_F TM_PER_DT Release Table =PRSCRBR_WK.DATA_CYCL Direct Pull MATCH_PRSCRBR_WK_F TM_PER_DT Release Table
E_DT
AND
PRSCRBR_WK.VNDR_PRSC Business Confidential
RBR_ID=MATCH_PRSCRBR_ 13 of 26 Merck & Co., Inc.
WK_D.SRC_VNDR_PRSCRB Whitehouse Station, NJ USA
R_ID
AND
MATCH_PRSCRBR_WK_D.D
ATA_SRC_ID=PRSCRBR_WK
Document ID: RX_WK_F.PRSCRBR_ID=PR [Document Title]
[Doc ID] SCRBR_WK.PRSCRBR_ID
AND
Source System / SMF RX_WK_F.DATA_SRC_ID=PR
= = = Target System / SMF
SCRBR_WK.DATA_SRC_ID
Source Field = = = Target Field
AND
Field Extraction Rules
RX_WK_F.DATA_CYCLE_DT Data Validation Rules Data Transformation Rules
Source Table Field Name Description =PRSCRBR_WK.DATA_CYCL Target Table Field Name Field Description
RX_WK_F NRX_CNT Release Table E_DT Aggregate based on MATCH_PRSCRBR_WK_F NRX_CNT Release Table
AND SRC_PRSCRBR_ID,PR
PRSCRBR_WK.VNDR_PRSC OD_PKG_ID,TM_PER_
RBR_ID=MATCH_PRSCRBR_ DT,SRC_ID_TYPE_CD,
WK_D.SRC_VNDR_PRSCRB DATA_CYCLE_DT,MAT
R_ID CH_ERROR_TYPE_ID
AND and DATA_SRC_ID
MATCH_PRSCRBR_WK_D.D
ATA_SRC_ID=PRSCRBR_WK
RX_WK_F TRX_CNT Release Table .DATA_SRC_ID Aggregate based on MATCH_PRSCRBR_WK_F TRX_CNT Release Table
AND SRC_PRSCRBR_ID,PR
MATCH_PRSCRBR_WK_D.D OD_PKG_ID,TM_PER_
ATA_CYCLE_DT=PRSCRBR_ DT,SRC_ID_TYPE_CD,
WK.DATA_CYCLE_DT DATA_CYCLE_DT,MAT
AND CH_ERROR_TYPE_ID
MATCH_PRSCRBR_WK_D.S and DATA_SRC_ID
RC_ID_TYPE_CD='VNDR'
AND
MATCH_PRSCRBR_WK_D.M sysdate(same value for all MATCH_PRSCRBR_WK_F CRTN_DT Release Table
ATCH_ROW_CD=0 sessions/tables within a module)
MATCH_SRC_MRKT_WK
SRC_MRKT_WK and view Include all the records with For VNDR If SRC_ID_TYPE_CD='VNDR' MATCH_SRC_MRKT_WK SRC_MRKT_ID Release Table
PROD_MSTR_SRC_MRKT below situation Join then SRC_MRKT_WK.
VNDR : SRC_MRKT_WK VNDR_SRC_MRKT_ID VNDR_SRC_MRKT_ID
MSTR : column of If SRC_ID_TYPE_CD='MSTR'
PROD_MSTR_SRC_MRKT SRC_MRKT_WK with then
Join condition column PROD_MSTR_SRC_MRKT.MST
MRKT_SRC_WK. VNDR_SRC_MRKT_ID R_SRC_MRKT_ID
VNDR_SRC_MRKT_ID of view
=PROD_MSTR_SRC_MRKT.V PROD_MSTR_SRC_MR VNDR' for records from MATCH_SRC_MRKT_WK SRC_ID_TYPE_CD Release Table
NDR_SRC_MRKT_ID KT SRC_MRKT_WK and 'MSTR' for
1) Include all VNDR records If records from Product
which are not present in view VNDR_SRC_MRKT_ID Master(Master) table
(SRC_ID_TYPE_CD='VNDR', column of
9 for Weekly MATCH_SRC_MRKT_WK DATA_SRC_ID Release Table
MATCH_ROW_CD=0,SRC_P SRC_MRKT_WK does
DATA_CYCLE_DT Release Table RSCRBR_ID= not have a match in Direct Pull MATCH_SRC_MRKT_WK DATA_CYCLE_DT Release Table
MRKT_SRC_WK. PROD_MSTR_SRC_MR 3 for Market Match Definition MATCH_SRC_MRKT_WK MATCH_ERROR_TYPE_ID Release Table
VNDR_SRC_MRKT_ID) KT, then for VNDR,its 0 for MSTR ,its 3 MATCH_SRC_MRKT_WK MATCH_ROW_CD Release Table
2) Include all the MSTR MATCH_ROW_Cd=0 If SRC_ID_TYPE_CD='VNDR' MATCH_SRC_MRKT_WK SRC_MRKT_NM Release Table
records which are not present from SRC_MRKT_WK. then
in for MSTR SRC_MRKT_WK .MRKT_NM
VNDR(SRC_ID_TYPE_CD='M IF If SRC_ID_TYPE_CD='MSTR'
STR',MATCH_ROW_CD=3,SR VNDR_SRC_MRKT_ID then
C_PRSCRBR_ID=PROD_MST of view PROD_MSTR_SRC_MRKT.MST
R_SRC_MRKT.MSTR_SRC_M PROD_MSTR_SRC_MR R_SRC_MRKT_NM
RKT_ID) KT does not have a
sysdate(same value for all MATCH_SRC_MRKT_WK CRTN_DT Release Table
sessions/tables within a module)
Business Confidential
14 of 26 Merck & Co., Inc.
Whitehouse Station, NJ USA
Document ID:
[Document Title]
[Doc ID]
MATCH_PROD_WK_D
PROD_PKG_WK, view Remove leading and trailing For Package Product For Package Product Matching MATCH_PROD_WK_D SRC_PROD_ID Release Table
PROD_MSTR_PKG_CMF(for Package blank spaces using Matching i.e. i.e.
Product Matching i.e. LTRIM(RTRIM()) function on all MATCH_ERROR_TYPE MATCH_ERROR_TYPE_ID=2
MATCH_ERROR_TYPE_ID=2) and view the columns coming from _ID=2 If SRC_ID_TYPE_CD='VNDR'
PROD_MSTR_MRKT_DEFN_PKG(for source file. VNDR_PROD_PKG_ID then PROD_PKG_WK.
Market Matching i.e. column in VNDR_PROD_PKG_ID
MATCH_ERROR_TYPE_ID=3) For Package Product Matching STAGE_RX_WK_F If SRC_ID_TYPE_CD='MSTR'
i.e. MSTR view is then
MATCH_ERROR_TYPE_ID=2 PROD_MSTR_PKG_CM PROD_MSTR_PKG_CMF.MST
VNDR file is F R_PROD_PKG_ID
STAGE_RX_WK_F For VNDR For Market Matching i.e.
MSTR view is Join MATCH_ERROR_TYPE_ID=3
PROD_MSTR_PKG_CMF VNDR_PROD_PKG_ID If SRC_ID_TYPE_CD='VNDR'
Join condition is with column then
STAGE_RX_WK_F.VNDR_PR VNDR_PROD_PKG_ID WRK_VNDR_MRKT_DEFN_WK
OD_PKG_ID=PROD_MSTR_P of view .VNDR_PROD_PKG_ID
KG_CMF.VNDR_PROD_PKG_ PROD_MSTR_PKG_CM If SRC_ID_TYPE_CD='MSTR'
ID F to retrieve then
Include all the records with MSTR_PROD_PKG_ID. PROD_MSTR_MRKT_DEFN_P
below situation Now depending upon no KG.MSTR_PROD_PKG_ID
1) Include all VNDR records of
which are not present in view MSTR_PROD_PKG_ID
(SRC_ID_TYPE_CD='VNDR', against
MATCH_ROW_CD=0,SRC_P VNDR_PROD_PKG_ID
ROD_ID=STAGE_RX_WK_F.V of VNDR' for records from IMS and MATCH_PROD_WK_D SRC_ID_TYPE_CD Release Table
NDR_PROD_PKG_ID) STAGE_RX_WK_F ,mat 'MSTR' for records from Product
2) Include all the MSTR ch row_cd is decided. Master(Master) table
records which are not present If one 9 for Weekly MATCH_PROD_WK_D DATA_SRC_ID Release Table
in VNDR_PROD_PKG_ID
Direct Pull MATCH_PROD_WK_D DATA_CYCLE_DT Release Table
VNDR(SRC_ID_TYPE_CD='M does not have a match in
STR',MATCH_ROW_CD=3,SR PROD_MSTR_PKG_CM 2 for Product Package Match,3 MATCH_PROD_WK_D MATCH_ERROR_TYPE_ID Release Table
C_PROD_ID=PROD_MSTR_P F, then for Market Matching
KG_CMF.MSTR_PROD_PKG_ MATCH_ROW_Cd=0 For Package Product Matching MATCH_PROD_WK_D MATCH_ROW_CD Release Table
ID) If one i.e.
3) Include all VNDR and MSTR VNDR_PROD_PKG_ID MATCH_ERROR_TYPE_ID=2
records where one VNDR has more than values of If SRC_ID_TYPE_CD='VNDR'
record has more than one MSTR_PROD_PKG_ID, then 0,1,2,5
MSTR records. then match_row_cd=1 If SRC_ID_TYPE_CD='MSTR'
If more than one then NULL and 3
(SRC_ID_TYPE_CD='VNDR', VNDR_PROD_PKG_IDs For Market Matching i.e.
MATCH_ROW_CD=1,SRC_P IDs have the same MATCH_ERROR_TYPE_ID=3
ROD_ID=STAGE_RX_WK_F.V MSTR_PROD_PKG_ID, If SRC_ID_TYPE_CD='VNDR'
NDR_PROD_PKG_ID) then then 0
and MATCH_ROW_CD=2 If SRC_ID_TYPE_CD='MSTR'
all matching records of If more than one then 3
View(SRC_ID_TYPE_CD='MS VNDR_PROD_PKG_IDs
TR',MATCH_ROW_CD=NULL, have more than one
SRC_PROD_ID=PROD_MSTR
_PKG_CMF.MSTR_PROD_PK
G_ID)
4) Include all VNDR and MSTR
records where more than one
VNDR record has one MSTR
records.
all matching records of
VNDR(SRC_ID_TYPE_CD='V
NDR',MATCH_ROW_CD=2,SR
C_PROD_ID=STAGE_RX_WK
Business Confidential
_F.VNDR_PROD_PKG_ID)
15 of 26 Merck & Co., Inc.
and
Whitehouse Station, NJ USA
matching record of
View(SRC_ID_TYPE_CD='MS
TR',MATCH_ROW_CD=NULL,
SRC_PROD_ID=PROD_MSTR
_PKG_CMF.MSTR_PROD_PK
ID)
3) Include all VNDR and MSTR
records where one VNDR
record has more than one
MSTR records.
Document ID:
(SRC_ID_TYPE_CD='VNDR', [Document Title]
[Doc ID]
MATCH_ROW_CD=1,SRC_P
ROD_ID=STAGE_RX_WK_F.V
Source System / SMF NDR_PROD_PKG_ID) = = = Target System / SMF
Source Field and = = = Target Field
Field all matching records of
Extraction Rules Data Validation Rules Data Transformation Rules
Source Table Field Name Description View(SRC_ID_TYPE_CD='MS Target Table Field Name Field Description
TR',MATCH_ROW_CD=NULL, have more than one
SRC_PROD_ID=PROD_MSTR values for MATCH_PROD_WK_D PROD_PKG_NM Release Table
_PKG_CMF.MSTR_PROD_PK MSTR_PROD_PKG_ID, For Package Product Matching
G_ID) then i.e.
4) Include all VNDR and MSTR MATCH_ROW_CD=5 MATCH_ERROR_TYPE_ID=2
records where more than one For MSTR If SRC_ID_TYPE_CD='VNDR'
VNDR record has one MSTR Join then NULL
records. VNDR_PROD_PKG_ID If SRC_ID_TYPE_CD='MSTR'
all matching records of of view then
VNDR(SRC_ID_TYPE_CD='V PROD_MSTR_PKG_CM PROD_MSTR_PKG_CMF.MST
NDR',MATCH_ROW_CD=2,SR F with R_PROD_PKG_NM
C_PROD_ID=STAGE_RX_WK VNDR_PROD_PKG_ID For Market Matching i.e.
_F.VNDR_PROD_PKG_ID) of STAGE_RX_WK_F MATCH_ERROR_TYPE_ID=3
and If there is no match in If SRC_ID_TYPE_CD='VNDR'
matching record of STAGE_RX_WK_F, then then NULL
View(SRC_ID_TYPE_CD='MS MATCH_ROW_CD=3 for If SRC_ID_TYPE_CD='MSTR'
TR',MATCH_ROW_CD=NULL, MSTR record. then
SRC_PROD_ID=PROD_MSTR If for one PROD_MSTR_MRKT_DEFN_P
_PKG_CMF.MSTR_PROD_PK MSTR_PROD_PKG_ID KG.MSTR_PROD_PKG_NM
G_ID) there is one
5) Include all VNDR and MSTR VNDR_PROD_PKG_ID,
records where more than one then match_row_cd=6 MATCH_PROD_WK_D USC_CD Release Table
VNDR record has more than If for one For Package Product Matching
one MSTR records. MSTR_PROD_PKG_ID i.e.
all matching records of there is more than one MATCH_ERROR_TYPE_ID=2
VNDR(SRC_ID_TYPE_CD='V VNDR_PROD_PKG_ID, If SRC_ID_TYPE_CD='VNDR'
NDR',MATCH_ROW_CD=5,SR then match_row_cd=7 then NULL
C_PROD_ID=STAGE_RX_WK If SRC_ID_TYPE_CD='MSTR'
_F.VNDR_PROD_PKG_ID) then
and For Market Matching i.e. PROD_MSTR_PKG_CMF.USC_
all matching records of MATCH_ERROR_TYPE CD
View(SRC_ID_TYPE_CD='MS _ID=3 For Market Matching i.e.
TR',MATCH_ROW_CD=NULL, VNDR table is MATCH_ERROR_TYPE_ID=3
SRC_PROD_ID=PROD_MSTR WRK_VNDR_MRKT_DE If SRC_ID_TYPE_CD='VNDR'
_PKG_CMF.MSTR_PROD_PK FN_WK then NULL
G_ID) MSTR view is If SRC_ID_TYPE_CD='MSTR'
6) Include all MSTR record
PROD_MSTR_MRKT_D then NULL
where one MSTR record hasEFN_PKG
one VNDR record. For VNDR
View(SRC_ID_TYPE_CD='MS Join For Package Product Matching MATCH_PROD_WK_D NDC_CD Release Table
TR',MATCH_ROW_CD=6,SRC VNDR_PROD_PKG_ID i.e.
_PROD_ID=PROD_MSTR_PK of MATCH_ERROR_TYPE_ID=2
G_CMF.MSTR_PROD_PKG_I WRK_VNDR_MRKT_DE If SRC_ID_TYPE_CD='VNDR'
D) FN_WK with column then NULL
7) Include all MSTR record
VNDR_PROD_PKG_ID If SRC_ID_TYPE_CD='MSTR'
where one MSTR record hasof view then
more than one VNDR recordPROD_MSTR_MRKT_D PROD_MSTR_PKG_CMF.NDC_
View(SRC_ID_TYPE_CD='MS EFN_PKG to retrieve CD
TR',MATCH_ROW_CD=7,SRC MSTR_PROD_PKG_ID. For Market Matching i.e.
_PROD_ID=PROD_MSTR_PK Now depending upon no MATCH_ERROR_TYPE_ID=3
G_CMF.MSTR_PROD_PKG_I of If SRC_ID_TYPE_CD='VNDR'
D) MSTR_PROD_PKG_ID then NULL
against If SRC_ID_TYPE_CD='MSTR'
VNDR_PROD_PKG_ID then NULL
of
WRK_VNDR_MRKT_DE
For Market Matching i.e. FN_WK ,match row_cd
MATCH_ERROR_TYPE_ID=3 is decided.
VNDR table is
WRK_VNDR_MRKT_DEFN_W
K Business Confidential
MSTR view is
16 of 26 Merck & Co., Inc.
PROD_MSTR_MRKT_DEFN_ Whitehouse Station, NJ USA
PKG
Join condition is
WRK_VNDR_MRKT_DEFN_W
K.VNDR_PROD_PKG_ID=PR
OD_MSTR_MRKT_DEFN_PK
7) Include all MSTR record
where one MSTR record has
more than one VNDR record
View(SRC_ID_TYPE_CD='MS
TR',MATCH_ROW_CD=7,SRC
_PROD_ID=PROD_MSTR_PK
Document ID:
G_CMF.MSTR_PROD_PKG_I [Document Title]
[Doc ID]
D)
Business Confidential
17 of 26 Merck & Co., Inc.
Whitehouse Station, NJ USA
Document ID:
[Document Title]
[Doc ID]
Business Confidential
18 of 26 Merck & Co., Inc.
Whitehouse Station, NJ USA
Document ID:
[Document Title]
[Doc ID]
Business Confidential
19 of 26 Merck & Co., Inc.
Whitehouse Station, NJ USA
Document ID:
[Document Title]
[Doc ID]
MATCH_PROD_ASSN_WK
STAGE_RX_WK_F VNDR_PROD_PKG_ID Release Table VNDR table is Direct pull MATCH_PROD_ASSN_WK SRC_VNDR_PROD_PKG_ID Release Table
STAGE_RX_WK_F VNDR MATCH_PROD_ASSN_WK SRC_VNDR_ID_TYPE_CD Release Table
Match_row_cd=1,2,5 and MSTR view is 9 for Weekly MATCH_PROD_ASSN_WK DATA_SRC_ID Release Table
STAGE_RX_WK_F DATA_CYCLE_DT Release Table MATCH_ERROR_TYPE_ID=2 PROD_MSTR_PKG_CM Direct pull MATCH_PROD_ASSN_WK DATA_CYCLE_DT Release Table
for product packages F
2 for Product Package Match MATCH_PROD_ASSN_WK MATCH_ERROR_TYPE_ID Release Table
Join
PROD_MSTR_PKG_CMF MSTR_PROD_PKG_ID Release Table VNDR_PROD_PKG_ID Direct pull MATCH_PROD_ASSN_WK SRC_MSTR_PROD_PKG_ID Release Table
of STAGE_RX_WK_F MSTR MATCH_PROD_ASSN_WK SRC_MSTR_ID_TYPE_CD Release Table
with column sysdate(same value for all MATCH_PROD_ASSN_WK CRTN_DT Release Table
VNDR_PROD_PKG_ID sessions/tables within a module)
of view
PROD_MSTR_PKG_CM sysdate(same value for all MATCH_PROD_ASSN_WK LAST_UPDT_DT Release Table
sessions/tables within a module)
MATCH_PROD_WK_F
MATCH_PROD_WK_D SRC_PROD_ID Release Table RX_WK_F.PROD_PKG_ID=P Direct Pull Direct Pull MATCH_PROD_WK_F SRC_PROD_ID Release Table
MATCH_PROD_WK_D SRC_ID_TYPE_CD Release Table ROD_PKG_WK.PROD_PKG_I Direct Pull Direct Pull MATCH_PROD_WK_F SRC_ID_TYPE_CD Release Table
RX_WK_F DATA_SRC_ID Release Table D Direct Pull Direct Pull MATCH_PROD_WK_F DATA_SRC_ID Release Table
RX_WK_F DATA_CYCLE_DT Release Table AND Direct Pull Direct Pull MATCH_PROD_WK_F DATA_CYCLE_DT Release Table
RX_WK_F.DATA_SRC_ID=PR
MATCH_PROD_WK_D MATCH_ERROR_TYPE Release Table Direct Pull Direct Pull MATCH_PROD_WK_F MATCH_ERROR_TYPE_ID Release Table
OD_PKG_WK.DATA_SRC_ID
_ID
AND
RX_WK_F TM_PER_DT Release Table RX_WK_F.DATA_CYCLE_DT Direct Pull Direct Pull MATCH_PROD_WK_F TM_PER_DT Release Table
=PROD_PKG_WK.DATA_CYC NULL MATCH_PROD_WK_F EXTNDD_UNIT_QTY Release Table
LE_DT NULL MATCH_PROD_WK_F TOTAL_DLLR_AMT Release Table
AND NULL MATCH_PROD_WK_F TOTAL_QTY Release Table
PROD_PKG_WK.VNDR_PRO NULL MATCH_PROD_WK_F TOTAL_FSPR_DLLR_AMT Release Table
D_PKG_ID=MATCH_PROD_
NULL MATCH_PROD_WK_F TOTAL_DOSE_CNT Release Table
WK_D.SRC_PROD_ID
AND NULL MATCH_PROD_WK_F TOTAL_PKG_CNT Release Table
MATCH_PROD_WK_D.DATA_ NULL MATCH_PROD_WK_F PACK_UNIT_QTY Release Table
SRC_ID=PROD_PKG_WK.DA NULL MATCH_PROD_WK_F VOL_UNIT_QTY Release Table
RX_WK_F NRX_CNT Release Table TA_SRC_ID Aggregate based on MATCH_PROD_WK_F NRX_CNT
AND SRC_PROD_ID,TM_PE
MATCH_PROD_WK_D.DATA_ R_DT,SRC_ID_TYPE_C
CYCLE_DT=PROD_PKG_WK. D,DATA_CYCLE_DT,MA
DATA_CYCLE_DT TCH_ERROR_TYPE_ID
AND and DATA_SRC_ID
MATCH_PROD_WK_D.SRC_I
D_TYPE_CD='VNDR'
RX_WK_F TRX_CNT Release Table AND Aggregate based on MATCH_PROD_WK_F TRX_CNT
MATCH_PROD_WK_D.MATC SRC_PROD_ID,TM_PE
H_ROW_CD=0 R_DT,SRC_ID_TYPE_C
D,DATA_CYCLE_DT,MA
TCH_ERROR_TYPE_ID
and DATA_SRC_ID
Business Confidential
20 of 26 Merck & Co., Inc.
Whitehouse Station, NJ USA
Document ID:
[Document Title]
[Doc ID]
Business Confidential
21 of 26 Merck & Co., Inc.
Whitehouse Station, NJ USA
Document ID:
[Document Title]
[Doc ID]
Business Confidential
22 of 26 Merck & Co., Inc.
Whitehouse Station, NJ USA
Document ID:
[Document Title]
[Doc ID]
CNTRVD_PRSCRBR_WK
9 for Weekly CNTRVD_PRSCRBR_WK DATA_SRC_ID Publish table
PRSCRBR_WK DATA_CYCLE_DT Release Table Direct pull CNTRVD_PRSCRBR_WK DATA_CYCLE_DT Publish table
PRSCRBR_WK PRSCRBR_ID Release Table Direct pull CNTRVD_PRSCRBR_WK CNTRVD_PRSCRBR_ID Publish table
PRSCRBR_WK VNDR_PRSCRBR_ID Release Table Direct pull CNTRVD_PRSCRBR_WK VNDR_CNTRVD_PRSCRBR_ID Publish table
PRSCRBR_WK LAST_NM Release Table Direct pull CNTRVD_PRSCRBR_WK LAST_NM Publish table
PRSCRBR_WK DSPLY_NM Release Table Direct pull CNTRVD_PRSCRBR_WK DSPLY_NM Publish table
Lookup VNDR_PRSCRBR_ID,DATA_CYCLE_DT
on VNDR_PRSCRBR_ID, DATA_CYCLE_DT of
PRSCRBR_MO and retrieve
Release Table CNTRVD_PRSCRBR_WK ADDR_LN_1_TXT Publish table
ADDR_LN_1_TXT,where DATA_SRC_ID=8. If
ADDR_LN_1_TXT is null, then NULL otherwise
ADDR_LN_1_TXT.
Lookup VNDR_PRSCRBR_ID,DATA_CYCLE_DT
on VNDR_PRSCRBR_ID, DATA_CYCLE_DT of
PRSCRBR_MO and retrieve
Release Table CNTRVD_PRSCRBR_WK ADDR_LN_2_TXT Publish table
ADDR_LN_2_TXT,where DATA_SRC_ID=8. If
ADDR_LN_2_TXT is null, then NULL otherwise
ADDR_LN_2_TXT.
Lookup VNDR_PRSCRBR_ID,DATA_CYCLE_DT
on VNDR_PRSCRBR_ID, DATA_CYCLE_DT of
PRSCRBR_MO and retrieve
Release Table CNTRVD_PRSCRBR_WK ADDR_LN_3_TXT Publish table
ADDR_LN_3_TXT ,where DATA_SRC_ID=8. If
ADDR_LN_3_TXT is null, then NULL otherwise
ADDR_LN_3_TXT.
Lookup VNDR_PRSCRBR_ID,DATA_CYCLE_DT
on VNDR_PRSCRBR_ID, DATA_CYCLE_DT of
PRSCRBR_MO and retrieve
Release Table CNTRVD_PRSCRBR_WK ADDR_LN_4_TXT Publish table
ADDR_LN_4_TXT ,where DATA_SRC_ID=8. If
ADDR_LN_4_TXT is null, then NULL otherwise
ADDR_LN_4_TXT.
Lookup VNDR_PRSCRBR_ID,DATA_CYCLE_DT
on VNDR_PRSCRBR_ID, DATA_CYCLE_DT of
Release Table PRSCRBR_MO and retrieve CITY_NM ,where CNTRVD_PRSCRBR_WK CITY_NM Publish table
DATA_SRC_ID=8. If CITY_NM is null, then NULL
otherwise CITY_NM.
data_src_id =9 and data_cycle_dt = curr
data_cycle_dt and VNDR_PRSCRBR_ID Lookup VNDR_PRSCRBR_ID,DATA_CYCLE_DT
on VNDR_PRSCRBR_ID, DATA_CYCLE_DT of
that start with 89, 91,94 and
Release Table VNDR_PRSCRBR_ID where the first digit PRSCRBR_MO and retrieve STATE_CD ,where CNTRVD_PRSCRBR_WK STATE_CD Publish table
is a Character value DATA_SRC_ID=8. If STATE_CD is null, then NULL
otherwise STATE_CD.
Lookup VNDR_PRSCRBR_ID,DATA_CYCLE_DT
on VNDR_PRSCRBR_ID, DATA_CYCLE_DT of
Release Table PRSCRBR_MO and retrieve ZIP_CD ,where CNTRVD_PRSCRBR_WK ZIP_CD Publish table
DATA_SRC_ID=8. If ZIP_CD is null, then NULL
otherwise ZIP_CD.
Lookup VNDR_PRSCRBR_ID,DATA_CYCLE_DT
on VNDR_PRSCRBR_ID, DATA_CYCLE_DT of
PRSCRBR_MO and retrieve
Release Table CNTRVD_PRSCRBR_WK ZIP_EXTNSN_CD Publish table
ZIP_EXTNSN_CD ,where DATA_SRC_ID=8. If
ZIP_EXTNSN_CD is null, then NULL otherwise
ZIP_EXTNSN_CD.
PRSCRBR_WK VNDR_SPCLTY_ID Release Table Direct Pull CNTRVD_PRSCRBR_WK VNDR_SPCLTY_ID Publish table
Lookup VNDR_PRSCRBR_ID,DATA_CYCLE_DT
on VNDR_PRSCRBR_ID, DATA_CYCLE_DT of
Release Table PRSCRBR_MO and retrieve SPCLTY_NM ,where CNTRVD_PRSCRBR_WK SPCLTY_NM Publish table
DATA_SRC_ID=8. If SPCLTY_NM is null, then
NULL otherwise SRC_SPCLTY_DESC.
NULL
OR
Lookup VNDR_PRSCRBR_ID,DATA_CYCLE_DT
on VNDR_CNTRVD_PRSCRBR_ID,
Release Table CNTRVD_PRSCRBR_WK VNDR_PROF_ID Publish table
DATA_CYCLE_DT of PRSCRBR_MO and retrieve
VNDR_PROF_ID ,where DATA_SRC_ID=8. If
VNDR_PROF_ID is null, then NULL otherwise
VNDR_PROF_ID.
Business Confidential
23 of 26 Merck & Co., Inc.
Whitehouse Station, NJ USA
Document ID:
[Document Title]
[Doc ID]
NULL
OR
Lookup VNDR_PRSCRBR_ID,DATA_CYCLE_DT
Release Table on VNDR_CNTRVD_PRSCRBR_ID, CNTRVD_PRSCRBR_WK PROF_NM Publish table
DATA_CYCLE_DT of PRSCRBR_MO and retrieve
PROF_NM ,where DATA_SRC_ID=8. If PROF_NM
is null, then NULL otherwise PROF_NM.
SRC_MRKT_WK
data_src_id =9 and data_cycle_dt = curr
SRC_MRKT_WK SRC_MRKT_ID Release Table Direct pull SRC_MRKT_WK SRC_MRKT_ID Publish table
data_cycle_dt
9 for Weekly SRC_MRKT_WK DATA_SRC_ID Publish table
SRC_MRKT_WK VNDR_SRC_MRKT_ID Release Table Direct pull SRC_MRKT_WK VNDR_SRC_MRKT_ID Publish table
SRC_MRKT_WK MRKT_NM Release Table Direct pull SRC_MRKT_WK MRKT_NM Publish table
SRC_MRKT_WK VNDR_MRKT_TYPE_CD Release Table Direct pull SRC_MRKT_WK VNDR_MRKT_TYPE_CD Publish table
SRC_MRKT_WK SRC_CD Release Table Direct pull SRC_MRKT_WK SRC_CD Publish table
Lookup VNDR_SRC_MRKT_ID , DATA_SRC_ID
SRC_MRKT_WK VNDR_SRC_MRKT_ID Release Table on VNDR_SRC_MRKT_ID , DATA_SRC_ID of SRC_MRKT_WK MSTR_PROD_ID Publish table
SRC_MRKT_XREF and fetch MSTR_PROD_ID
SRC_MRKT_WK DATA_CYCLE_DT Release Table Direct pull SRC_MRKT_WK DATA_CYCLE_DT Publish table
sysdate(same value for all sessions/tables within a
SRC_MRKT_WK CRTN_DT Publish table
module)
sysdate(same value for all sessions/tables within a
SRC_MRKT_WK LAST_UPDT_DT Publish table
module)
CHNNL_WK
data_src_id =9 and data_cycle_dt = curr
CHNNL_WK CHNNL_ID Release Table Direct pull CHNNL_WK CHNNL_ID Publish table
data_cycle_dt
CHNNL_WK VNDR_CHNNL_ID Release Table Direct pull CHNNL_WK VNDR_CHNNL_ID Publish table
CHNNL_WK CHNNL_NM Release Table Direct pull CHNNL_WK CHNNL_NM Publish table
9 for Weekly CHNNL_WK DATA_SRC_ID Publish table
CHNNL_WK DATA_CYCLE_DT Release Table Direct pull CHNNL_WK DATA_CYCLE_DT Publish table
sysdate(same value for all sessions/tables within a
CHNNL_WK CRTN_DT Publish table
module)
sysdate(same value for all sessions/tables within a
CHNNL_WK LAST_UPDT_DT Publish table
module)
WRK_RX_WK_F
9 for Weekly WRK_RX_WK_F DATA_SRC_ID Publish table
RX_WK_F DATA_CYCLE_DT Release Table Direct Pull WRK_RX_WK_F DATA_CYCLE_DT Publish table
RX_WK_F SRC_MRKT_ID Release Table Direct Pull WRK_RX_WK_F SRC_MRKT_ID Publish table
Lookup PROD_PKG_ID,
DATA_CYCLE_DT, DATA_SRC_ID on
RX_WK_F PROD_PKG_ID Release Table PROD_PKG_ID, DATA_CYCLE_DT, Direct Pull WRK_RX_WK_F VNDR_PROD_PKG_ID Publish table
DATA_SRC_ID of PROD_PKG_WK and
retrieve VNDR_PROD_PKG_ID
Lookup PRSCRBR_ID, DATA_CYCLE_DT,
DATA_SRC_ID on PRSCRBR_ID,
RX_WK_F PRSCRBR_ID Release Table DATA_CYCLE_DT, DATA_SRC_ID of Direct Pull WRK_RX_WK_F VNDR_PRSCRBR_ID Publish table
PRSCRBR_WK and retrieve
VNDR_PRSCRBR_ID
RX_WK_F CHNNL_ID Release Table Direct Pull WRK_RX_WK_F CHNNL_ID Publish table
RX_WK_F TM_PER_DT Release Table Direct Pull WRK_RX_WK_F TM_PER_DT Publish table
Business Confidential
24 of 26 Merck & Co., Inc.
Whitehouse Station, NJ USA
Document ID:
[Document Title]
[Doc ID]
RX_PUB_WK_F
WRK_RX_WK_F DATA_SRC_ID Publish table Direct Pull RX_PUB_WK_F DATA_SRC_ID Publish table
WRK_RX_WK_F DATA_CYCLE_DT Publish table Direct Pull RX_PUB_WK_F DATA_CYCLE_DT Publish table
WRK_RX_WK_F SRC_MRKT_ID Publish table Direct Pull RX_PUB_WK_F SRC_MRKT_ID Publish table
WRK_RX_WK_F MSTR_PROD_ID Publish table Direct Pull RX_PUB_WK_F MSTR_PROD_ID Publish table
WRK_RX_WK_F VNDR_PRSCRBR_ID Publish table Direct Pull RX_PUB_WK_F PRSCRBR_PARTY_ID Publish table
WRK_RX_WK_F CHNNL_ID Publish table Direct Pull RX_PUB_WK_F CHNNL_ID Publish table
WRK_RX_WK_F TM_PER_DT Publish table Direct Pull RX_PUB_WK_F TM_PER_DT Publish table
Aggregate based on DATA_SRC_ID,
DATA_CYCLE_DT,
CNTRVD_PRSCRBR_IND='N'
SRC_MRKT_ID,
and MSTR_PROD_ID is not null
WRK_RX_WK_F NRX_CNT Publish table MSTR_PROD_ID, RX_PUB_WK_F NRX_CNT Publish table
and PRSCRBR_PARTY_ID is not null
PRSCRBR_PARTY_ID,
CHNNL_ID,
TM_PER_DT
RX_PUB_CNTRVD_WK_F
WRK_RX_WK_F DATA_SRC_ID Publish table Direct Pull RX_PUB_CNTRVD_WK_F DATA_SRC_ID Publish table
WRK_RX_WK_F DATA_CYCLE_DT Publish table Direct Pull RX_PUB_CNTRVD_WK_F DATA_CYCLE_DT Publish table
WRK_RX_WK_F SRC_MRKT_ID Publish table Direct Pull RX_PUB_CNTRVD_WK_F SRC_MRKT_ID Publish table
WRK_RX_WK_F MSTR_PROD_ID Publish table Direct Pull RX_PUB_CNTRVD_WK_F MSTR_PROD_ID Publish table
WRK_RX_WK_F CHNNL_ID Publish table Direct Pull RX_PUB_CNTRVD_WK_F CHNNL_ID Publish table
WRK_RX_WK_F TM_PER_DT Publish table Direct Pull RX_PUB_CNTRVD_WK_F TM_PER_DT Publish table
Aggregate based on DATA_SRC_ID,
DATA_CYCLE_DT,
SRC_MRKT_ID,
CNTRVD_PRSCRBR_IND='Y'
WRK_RX_WK_F NRX_CNT Publish table MSTR_PROD_ID, RX_PUB_CNTRVD_WK_F NRX_CNT Publish table
and MSTR_PROD_ID is not null
CNTRVD_PRSCRBR_ID,
CHNNL_ID,
TM_PER_DT
Business Confidential
25 of 26 Merck & Co., Inc.
Whitehouse Station, NJ USA
Document ID:
[Document Title]
[Doc ID]
WRK_RX_WK_F CNTRVD_PRSCRBR_IND Publish table Direct Pull RX_PUB_WK_F_RJCT CNTRVD_PRSCRBR_IND Publish table
WRK_RX_WK_F NRX_CNT Publish table OR Direct Pull RX_PUB_WK_F_RJCT NRX_CNT Publish table
WRK_RX_WK_F TRX_CNT Publish table PRSCRBR_PARTY_ID is null Direct Pull RX_PUB_WK_F_RJCT TRX_CNT Publish table
"
sysdate(same value for all sessions/tables within a
RX_PUB_WK_F_RJCT CRTN_DT Publish table
module)
sysdate(same value for all sessions/tables within a
RX_PUB_WK_F_RJCT LAST_UPDT_DT Publish table
module)
PMR_DATA_CYCLE_DT
1 row for each module. Only for Publish Lookup file_name like 'W' or 'M' on PMR_DATA_CYCLE_DT DATA_SRC_ID
DLVRY_FREQ_CD of DATA_SRC table to retrieve
back DATA_SRC_ID where DATA_SRC_NM like
'DDD%' .It should be 1 for DDDM(Monthly) and 2 for
DDDW(weekly)
Updated with this value when process completes PMR_DATA_CYCLE_DT DATA_CYCLE_DT
successfully.Lookup DATA_SRC_ID(valued 1 or 2)
and FILE_NM on DATA_SRC_ID and FILE_NM of
RCVD_FILE table to retrieve
MAX(DAT_CYCLE_DT)
Stores the information of previous data cycle_dt PMR_DATA_CYCLE_DT PREV_DATA_CYCLE_DT
stores the information of deleted data cycle_dt PMR_DATA_CYCLE_DT DEL_DATA_CYCLE_DT
Business Confidential
26 of 26 Merck & Co., Inc.
Whitehouse Station, NJ USA