Skip to content

Commit

Permalink
Merge pull request #469 from NewtonMutugi/fix/mhealth_table_names
Browse files Browse the repository at this point in the history
Fix update mhealth table names
  • Loading branch information
NewtonMutugi authored Jul 31, 2024
2 parents e7d5b8a + 59c1bac commit f8bcab0
Show file tree
Hide file tree
Showing 18 changed files with 156 additions and 157 deletions.
21 changes: 10 additions & 11 deletions Scripts/NDWH/ALL DIMENSIONS/load_DimPatient.sql
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ BEGIN
AND outcomes.sitecode = patients.sitecode
LEFT JOIN ODS.dbo.CT_ARTPatients as art on art.PatientPKHash = patients.PatientPKHash
AND art.SiteCode = patients.SiteCode
),
),
hts_patient_source
AS (SELECT DISTINCT htsnumberhash,
patientpkhash,
Expand All @@ -55,7 +55,7 @@ BEGIN
nupihash,
clients.voided
FROM ods.dbo.hts_clients AS clients

),
prep_patient_source
AS (SELECT DISTINCT patientpkhash,
Expand All @@ -69,7 +69,7 @@ BEGIN
maritalstatus
,voided
FROM ods.dbo.prep_patient),

pmtct_patient_source
AS (SELECT DISTINCT patientpkhash,
patientpk,
Expand Down Expand Up @@ -124,7 +124,7 @@ BEGIN
AND ct_patient_source.sitecode =
hts_patient_source.sitecode),


combined_data_ct_hts_prep
AS (SELECT COALESCE(combined_data_ct_hts.patientpkhash,
prep_patient_source.patientpkhash)
Expand Down Expand Up @@ -171,7 +171,7 @@ BEGIN
AND prep_patient_source.sitecode =
combined_data_ct_hts.sitecode),


combined_data_ct_hts_prep_pmtct
AS (SELECT COALESCE(combined_data_ct_hts_prep.patientpkhash,
pmtct_patient_source.patientpkhash)
Expand Down Expand Up @@ -216,7 +216,7 @@ BEGIN
AND combined_data_ct_hts_prep.sitecode =
pmtct_patient_source.sitecode),
ushauri_patient_source_nonEMR
AS (SELECT DISTINCT
AS (SELECT DISTINCT
ushauri.UshauriPatientPkHash,
ushauri.PatientIDHash,
ushauri.patientpk,
Expand All @@ -228,9 +228,9 @@ BEGIN
ushauri.maritalstatus,
ushauri.nupihash,
ushauri.SiteType
FROM ods.dbo.Ushauri_Patient AS ushauri
FROM [ODS].[dbo].[Mhealth_Ushauri_Patient] AS ushauri
where ushauri.PatientPKHash is null and SiteCode is not null

) ,
Disclosure as (
Select
Expand Down Expand Up @@ -347,7 +347,7 @@ BEGIN
FROM combined_data_ct_hts_prep_pmtct_Ushauri) AS b
ON ( a.sitecode = b.sitecode
AND a.patientpkhash = b.patientpkhash

)
WHEN NOT matched THEN
INSERT(patientidhash,
Expand Down Expand Up @@ -406,5 +406,4 @@ BEGIN
a.voided = b.voided,
a.DateConfirmedHIVPositiveKey = b.DateConfirmedHIVPositiveKey,
a.Disclosure = b.Disclosure;
END

END
4 changes: 2 additions & 2 deletions Scripts/NDWH/C&T FACT TABLES/load_FactUshauriAppointments.sql
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ BEGIN
Daysdefaulted,
Nupihash
INTO NDWH.dbo.FactUshauriAppointments
FROM Ods.Dbo.Ushauri_patientappointments AS Apt
FROM [ODS].[dbo].[Mhealth_Ushauri_PatientAppointments] AS Apt
LEFT JOIN Ndwh.Dbo.Dimfacility AS Facility
ON Facility.Mflcode = Apt.Sitecode
LEFT JOIN Mfl_partner_agency_combination
Expand Down Expand Up @@ -101,4 +101,4 @@ BEGIN

ALTER TABLE Ndwh.Dbo.FactUshauriAppointments
ADD PRIMARY KEY(Factkey);
END
END
4 changes: 2 additions & 2 deletions Scripts/ODS/Mhealth/Load_UShauri_PatientLabs.sql
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---- Loads data from MhealthCentral to ODS
-----truncate table[ODS].[dbo].[Ushauri_PatientLabs]
-----truncate table[ODS].[dbo].[Mhealth_mLab_PatientLab]
BEGIN

MERGE [ODS].[dbo].[Ushauri_PatientLabs] AS a
MERGE [ODS].[dbo].[Mhealth_mLab_PatientLab] AS a
USING (
SELECT DISTINCT [PatientPK]
,[PatientPKHash]
Expand Down
24 changes: 12 additions & 12 deletions Scripts/ODS/Mhealth/Load_Ushauri_HEI.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BEGIN

MERGE [ODS].[dbo].[Ushauri_HEI] AS a
MERGE [ODS].[dbo].[Mhealth_Ushauri_HEI] AS a
USING(SELECT Distinct
PatientPK As UshauriPatientPK,PatientPKHash As UshauriPatientPKHash,PartnerName,SiteCode,SiteType,Emr,Project,
FacilityName,PatientMNCH_ID,PatientHEI_ID,[1stDNAPCRDate],[2ndDNAPCRDate],
Expand All @@ -10,20 +10,20 @@ BEGIN
HEIExitDate_Date,DateCreated_Date,DateModified_Date

FROM [MhealthCentral].[dbo].[pmtct_MNCH_HEI](NoLock) P
) AS b
) AS b
ON(
a.[UshauriPatientPK] = b.UshauriPatientPK
and a.SiteCode = b.SiteCode
a.[UshauriPatientPK] = b.UshauriPatientPK
and a.SiteCode = b.SiteCode
and a.PatientHEI_ID = b.PatientHEI_ID

)
WHEN NOT MATCHED THEN
INSERT(UshauriPatientPK,UshauriPatientPKHash,PartnerName,SiteCode,SiteType,Emr,Project,FacilityName,PatientMNCH_ID,PatientHEI_ID,[1stDNAPCRDate],[2ndDNAPCRDate],[3rdDNAPCRDate],ConfirmatoryPCRDate,BasellineVLDate,FinalyAntibodyDate,[1stDNAPCR],[2ndDNAPCR],[3rdDNAPCR],ConfirmatoryPCR,BasellineVL,FinalyAntibody,HEIExitDate,HEIHIVStatus,HEIExitCriteria,DateCreated,DateModified,[1stDNAPCRDate_Date],[2ndDNAPCRDate_Date],[3rdDNAPCRDate_Date],ConfirmatoryPCRDate_Date,BasellineVLDate_Date,FinalyAntibodyDate_Date,HEIExitDate_Date,DateCreated_Date,DateModified_Date,LoadDate)

WHEN NOT MATCHED THEN
INSERT(UshauriPatientPK,UshauriPatientPKHash,PartnerName,SiteCode,SiteType,Emr,Project,FacilityName,PatientMNCH_ID,PatientHEI_ID,[1stDNAPCRDate],[2ndDNAPCRDate],[3rdDNAPCRDate],ConfirmatoryPCRDate,BasellineVLDate,FinalyAntibodyDate,[1stDNAPCR],[2ndDNAPCR],[3rdDNAPCR],ConfirmatoryPCR,BasellineVL,FinalyAntibody,HEIExitDate,HEIHIVStatus,HEIExitCriteria,DateCreated,DateModified,[1stDNAPCRDate_Date],[2ndDNAPCRDate_Date],[3rdDNAPCRDate_Date],ConfirmatoryPCRDate_Date,BasellineVLDate_Date,FinalyAntibodyDate_Date,HEIExitDate_Date,DateCreated_Date,DateModified_Date,LoadDate)
VALUES(UshauriPatientPK,UshauriPatientPKHash,PartnerName,SiteCode,SiteType,Emr,Project,FacilityName,PatientMNCH_ID,PatientHEI_ID,[1stDNAPCRDate],[2ndDNAPCRDate],[3rdDNAPCRDate],ConfirmatoryPCRDate,BasellineVLDate,FinalyAntibodyDate,[1stDNAPCR],[2ndDNAPCR],[3rdDNAPCR],ConfirmatoryPCR,BasellineVL,FinalyAntibody,HEIExitDate,HEIHIVStatus,HEIExitCriteria,DateCreated,DateModified,[1stDNAPCRDate_Date],[2ndDNAPCRDate_Date],[3rdDNAPCRDate_Date],ConfirmatoryPCRDate_Date,BasellineVLDate_Date,FinalyAntibodyDate_Date,HEIExitDate_Date,DateCreated_Date,DateModified_Date,Getdate())

WHEN MATCHED THEN
UPDATE SET
UPDATE SET
a.[PartnerName] = b.[PartnerName],
a.[SiteType] = b.[SiteType],
a.[Emr] = b.[Emr],
Expand Down Expand Up @@ -57,5 +57,5 @@ BEGIN
a.[DateModified_Date] = b.[DateModified_Date]
;

END

END
4 changes: 2 additions & 2 deletions Scripts/ODS/Mhealth/Load_Ushauri_HW_Exposures.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---- Loads Ushauri_HW_Exposures data from MhealthCentral to ODS
-- truncate table [ODS].[dbo].[Ushauri_HW_Exposure]
-- truncate table [ODS].[dbo].[Mhealth_Ushauri_HWExposure]
BEGIN
MERGE [ODS].[dbo].[Ushauri_HW_Exposure]
MERGE [ODS].[dbo].[Mhealth_Ushauri_HWExposure]
AS a
USING (
SELECT DISTINCT
Expand Down
26 changes: 13 additions & 13 deletions Scripts/ODS/Mhealth/Load_Ushauri_Patient.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

BEGIN

MERGE [ODS].[dbo].[Ushauri_Patient] AS a
MERGE [ODS].[dbo].[Mhealth_Ushauri_Patient] AS a
USING(SELECT Distinct
PatientPK,MPIPKV,null PatientPKHash,PartnerName,SiteCode,SiteType,PatientID,null PatientIDHash,FacilityID,Emr,Project,FacilityName,
Gender,DOB_Date AS DOB,RegistrationDate_Date As RegistrationDate,RegistrationAtCCC_Date As RegistrationAtCCC,RegistrationAtPMTCT_Date As RegistrationAtPMTCT,RegistrationAtTBClinic,PatientSource,Region,District,
Expand All @@ -11,18 +11,18 @@ BEGIN
PatientResidentWard,PatientType,PopulationType,TransferInDate,Occupation,DateCreated_Date As DateCreated,DateModified_Date As DateModified,StatelitteName,
Date_Created_Date As Date_Created,Date_Modified_Date As Date_Modified,PKV,NUPI
FROM [mhealthCentral].[dbo].[CT_Patient](NoLock) P
) AS b
) AS b
ON(
a.[UshauriPatientPK] = b.PatientPK
and a.SiteCode = b.SiteCode
a.[UshauriPatientPK] = b.PatientPK
and a.SiteCode = b.SiteCode
)
WHEN NOT MATCHED THEN
INSERT([UshauriPatientPK],MPIPKV,PatientPKHash,PartnerName,SiteCode,SiteType,PatientID,PatientIDHash,FacilityID,Emr,Project,FacilityName,Gender,DOB,RegistrationDate,RegistrationAtCCC,RegistrationAtPMTCT,RegistrationAtTBClinic,PatientSource,Region,District,Village,ContactRelation,LastVisit,MaritalStatus,EducationLevel,DateConfirmedHIVPositive,PreviousARTExposure,PreviousARTStartDate,StatusAtCCC,StatusAtPMTCT,StatusAtTBClinic,Inschool,KeyPopulationType,Orphan,County,PatientResidentLocation,PatientResidentSubCounty,PatientResidentSubLocation,PatientResidentVillage,PatientResidentWard,PatientType,PopulationType,TransferInDate,Occupation,DateCreated,DateModified,StatelitteName,Date_Created,Date_Modified,PKV,NUPI,LoadDate)

WHEN NOT MATCHED THEN
INSERT([UshauriPatientPK],MPIPKV,PatientPKHash,PartnerName,SiteCode,SiteType,PatientID,PatientIDHash,FacilityID,Emr,Project,FacilityName,Gender,DOB,RegistrationDate,RegistrationAtCCC,RegistrationAtPMTCT,RegistrationAtTBClinic,PatientSource,Region,District,Village,ContactRelation,LastVisit,MaritalStatus,EducationLevel,DateConfirmedHIVPositive,PreviousARTExposure,PreviousARTStartDate,StatusAtCCC,StatusAtPMTCT,StatusAtTBClinic,Inschool,KeyPopulationType,Orphan,County,PatientResidentLocation,PatientResidentSubCounty,PatientResidentSubLocation,PatientResidentVillage,PatientResidentWard,PatientType,PopulationType,TransferInDate,Occupation,DateCreated,DateModified,StatelitteName,Date_Created,Date_Modified,PKV,NUPI,LoadDate)
VALUES(PatientPK,MPIPKV,PatientPKHash,PartnerName,SiteCode,SiteType,PatientID,PatientIDHash,FacilityID,Emr,Project,FacilityName,Gender,DOB,RegistrationDate,RegistrationAtCCC,RegistrationAtPMTCT,RegistrationAtTBClinic,PatientSource,Region,District,Village,ContactRelation,LastVisit,MaritalStatus,EducationLevel,DateConfirmedHIVPositive,PreviousARTExposure,PreviousARTStartDate,StatusAtCCC,StatusAtPMTCT,StatusAtTBClinic,Inschool,KeyPopulationType,Orphan,County,PatientResidentLocation,PatientResidentSubCounty,PatientResidentSubLocation,PatientResidentVillage,PatientResidentWard,PatientType,PopulationType,TransferInDate,Occupation,DateCreated,DateModified,StatelitteName,Date_Created,Date_Modified,PKV,NUPI,Getdate())

WHEN MATCHED THEN
UPDATE SET
UPDATE SET
a.[MPIPKV] = b.[MPIPKV],
a.[PartnerName] = b.[PartnerName],
a.[SiteType] = b.[SiteType],
Expand Down Expand Up @@ -77,13 +77,13 @@ BEGIN
Select
Sitecode,
UshauriPatientPK,

ROW_NUMBER() OVER (PARTITION BY UshauriPatientPK,Sitecode ORDER BY
UshauriPatientPK) Row_Num
FROM [ODS].[dbo].[Ushauri_Patient](NoLock)
FROM [ODS].[dbo].[Mhealth_Ushauri_Patient](NoLock)
)
delete from cte
delete from cte
Where Row_Num >1 ;


END
22 changes: 11 additions & 11 deletions Scripts/ODS/Mhealth/Load_Ushauri_PatientAppointments.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BEGIN

MERGE [ODS].[dbo].[Ushauri_PatientAppointments] AS a
MERGE [ODS].[dbo].[Mhealth_Ushauri_PatientAppointments] AS a
USING(SELECT Distinct
PatientPK,Null As PatientPKHash,SiteCode,SiteType,PatientID,Null As PatientIDHash, NUPI,PartnerName,FacilityID,FacilityName,
DOB_Date As DOB,Gender,MaritalStatus,PatientResidentCounty,PatientResidentLocation,PatientResidentSubCounty,
Expand All @@ -15,20 +15,20 @@ BEGIN
MissedAppointmentSMSSent,MissedAppointmentSMSSendDate_Date As MissedAppointmentSMSSendDate,MissedAppointmentSMSDeliveryStatus,MissedAppointmentSMSDeliveryFailureReason,
TracingCost,TracingOutcome,TracingOutcomeDate_Date As TracingOutcomeDate,DateReturnedToCare_Date As DateReturnedToCare,DaysDefaulted
FROM [mhealthCentral].[dbo].[CT_PatientAppointments](NoLock) P
) AS b
) AS b
ON(
a.SiteCode = b.SiteCode
a.SiteCode = b.SiteCode
and a.[AppointmentID] = b.[AppointmentID]
)
WHEN NOT MATCHED THEN
INSERT([UshauriPatientPK],PatientPKHash,SiteCode,SiteType,PatientID,PatientIDHash,NUPI,PartnerName,FacilityID,FacilityName,DOB,Gender,MaritalStatus,PatientResidentCounty,PatientResidentLocation,PatientResidentSubCounty,PatientResidentSubLocation,PatientResidentVillage,PatientResidentWard,RegistrationDate,RegistrationAtCCC,RegistrationAtPMTCT,RegistrationAtTBClinic,StatusAtCCC,StatusAtPMTCT,StatusAtTBClinic,AgeAtAppointment,AppointmentID,AppointmentDate,AppointmentType,AppointmentStatus,EntryPoint,VisitType,DateAttended,ConsentForSMS,SMSLanguage,SMSTargetGroup,SMSPreferredSendTime,FourWeekSMSSent,FourWeekSMSSendDate,FourWeekSMSDeliveryStatus,FourWeekSMSDeliveryFailureReason,ThreeWeekSMSSent,ThreeWeekSMSSendDate,ThreeWeekSMSDeliveryStatus,ThreeWeekSMSDeliveryFailureReason,TwoWeekSMSSent,TwoWeekSMSSendDate,TwoWeekSMSDeliveryStatus,TwoWeekSMSDeliveryFailureReason,OneWeekSMSSent,OneWeekSMSSendDate,OneWeekSMSDeliveryStatus,OneWeekSMSDeliveryFailureReason,OneDaySMSSent,OneDaySMSSendDate,OneDaySMSDeliveryStatus,OneDaySMSDeliveryFailureReason,MissedAppointmentSMSSent,MissedAppointmentSMSSendDate,MissedAppointmentSMSDeliveryStatus,MissedAppointmentSMSDeliveryFailureReason,TracingOutCost,TracingOutcome,TracingOutcomeDate,DateReturnedToCare,DaysDefaulted,LoadDate)

WHEN NOT MATCHED THEN
INSERT([UshauriPatientPK],PatientPKHash,SiteCode,SiteType,PatientID,PatientIDHash,NUPI,PartnerName,FacilityID,FacilityName,DOB,Gender,MaritalStatus,PatientResidentCounty,PatientResidentLocation,PatientResidentSubCounty,PatientResidentSubLocation,PatientResidentVillage,PatientResidentWard,RegistrationDate,RegistrationAtCCC,RegistrationAtPMTCT,RegistrationAtTBClinic,StatusAtCCC,StatusAtPMTCT,StatusAtTBClinic,AgeAtAppointment,AppointmentID,AppointmentDate,AppointmentType,AppointmentStatus,EntryPoint,VisitType,DateAttended,ConsentForSMS,SMSLanguage,SMSTargetGroup,SMSPreferredSendTime,FourWeekSMSSent,FourWeekSMSSendDate,FourWeekSMSDeliveryStatus,FourWeekSMSDeliveryFailureReason,ThreeWeekSMSSent,ThreeWeekSMSSendDate,ThreeWeekSMSDeliveryStatus,ThreeWeekSMSDeliveryFailureReason,TwoWeekSMSSent,TwoWeekSMSSendDate,TwoWeekSMSDeliveryStatus,TwoWeekSMSDeliveryFailureReason,OneWeekSMSSent,OneWeekSMSSendDate,OneWeekSMSDeliveryStatus,OneWeekSMSDeliveryFailureReason,OneDaySMSSent,OneDaySMSSendDate,OneDaySMSDeliveryStatus,OneDaySMSDeliveryFailureReason,MissedAppointmentSMSSent,MissedAppointmentSMSSendDate,MissedAppointmentSMSDeliveryStatus,MissedAppointmentSMSDeliveryFailureReason,TracingOutCost,TracingOutcome,TracingOutcomeDate,DateReturnedToCare,DaysDefaulted,LoadDate)
VALUES(PatientPK,PatientPKHash,SiteCode,SiteType,PatientID,PatientIDHash,NUPI,PartnerName,FacilityID,FacilityName,DOB,Gender,MaritalStatus,PatientResidentCounty,PatientResidentLocation,PatientResidentSubCounty,PatientResidentSubLocation,PatientResidentVillage,PatientResidentWard,RegistrationDate,RegistrationAtCCC,RegistrationAtPMTCT,RegistrationAtTBClinic,StatusAtCCC,StatusAtPMTCT,StatusAtTBClinic,AgeAtAppointment,AppointmentID,AppointmentDate,AppointmentType,AppointmentStatus,EntryPoint,VisitType,DateAttended,ConsentForSMS,SMSLanguage,SMSTargetGroup,SMSPreferredSendTime,FourWeekSMSSent,FourWeekSMSSendDate,FourWeekSMSDeliveryStatus,FourWeekSMSDeliveryFailureReason,ThreeWeekSMSSent,ThreeWeekSMSSendDate,ThreeWeekSMSDeliveryStatus,ThreeWeekSMSDeliveryFailureReason,TwoWeekSMSSent,TwoWeekSMSSendDate,TwoWeekSMSDeliveryStatus,TwoWeekSMSDeliveryFailureReason,OneWeekSMSSent,OneWeekSMSSendDate,OneWeekSMSDeliveryStatus,OneWeekSMSDeliveryFailureReason,OneDaySMSSent,OneDaySMSSendDate,OneDaySMSDeliveryStatus,OneDaySMSDeliveryFailureReason,MissedAppointmentSMSSent,MissedAppointmentSMSSendDate,MissedAppointmentSMSDeliveryStatus,MissedAppointmentSMSDeliveryFailureReason,TracingCost,TracingOutcome,TracingOutcomeDate,DateReturnedToCare,DaysDefaulted,Getdate())

WHEN MATCHED THEN
UPDATE SET
UPDATE SET
a.[SiteType] = b.[SiteType],
a.[PatientID] = b.[PatientID],
a.[PatientID] = b.[PatientID],
a.[NUPI] = b.[NUPI],
a.[PartnerName] = b.[PartnerName],
a.[FacilityName] = b.[FacilityName],
Expand Down Expand Up @@ -88,5 +88,5 @@ BEGIN
a.[DateReturnedToCare] = b.[DateReturnedToCare],
a.[DaysDefaulted] = b.[DaysDefaulted];

END

END
18 changes: 9 additions & 9 deletions Scripts/ODS/Mhealth/Load_Ushauri_PatientReferral.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

BEGIN

MERGE [ODS].[dbo].[Ushauri_PatientReferral] AS a
MERGE [ODS].[dbo].[Mhealth_FacilityReferral_Patient] AS a
USING(SELECT DISTINCT [ReferralPK]
,[ReferralPKHash]
,[PatientID]
Expand All @@ -17,18 +17,18 @@ BEGIN
,[TransferInFacilityName]
,[TransferStatus]
FROM [MhealthCentral].[dbo].[CT_PatientReferral]
) AS b
) AS b
ON(
a.[UshauriReferralPK] = b.[ReferralPK] and
a.TransferoutDate = b.TransferoutDate
a.TransferoutDate = b.TransferoutDate
)
WHEN NOT MATCHED THEN
INSERT([UshauriReferralPK],[UshauriReferralPKHash],PatientID,PatientIDHash,ReferralType,TransferOutDate,TransferOutPartnerName,TransferOutSiteCode,TransferOutFacilityName,TransferInDate,TransferInPartnerName,TransferInSiteCode,TransferInFacilityName,TransferStatus,LoadDate)

WHEN NOT MATCHED THEN
INSERT([UshauriReferralPK],[UshauriReferralPKHash],PatientID,PatientIDHash,ReferralType,TransferOutDate,TransferOutPartnerName,TransferOutSiteCode,TransferOutFacilityName,TransferInDate,TransferInPartnerName,TransferInSiteCode,TransferInFacilityName,TransferStatus,LoadDate)
VALUES(ReferralPK,ReferralPKHash,PatientID,PatientIDHash,ReferralType,TransferOutDate,TransferOutPartnerName,TransferOutSiteCode,TransferOutFacilityName,TransferInDate,TransferInPartnerName,TransferInSiteCode,TransferInFacilityName,TransferStatus,getdate())

WHEN MATCHED THEN
UPDATE SET
UPDATE SET
a.[ReferralType]=b.[ReferralType],
a.[TransferOutDate]=b.[TransferOutDate],
a.[TransferOutPartnerName]=b.[TransferOutPartnerName],
Expand All @@ -39,5 +39,5 @@ BEGIN
a.[TransferInSiteCode]=b.[TransferInSiteCode],
a.[TransferInFacilityName]=b.[TransferInFacilityName],
a.[TransferStatus]=b.[TransferStatus];

END
Loading

0 comments on commit f8bcab0

Please sign in to comment.