Linking a Person Clause Samples
The 'Linking a Person' clause establishes the process or requirements for associating an individual with a particular role, account, or entity within an agreement or system. Typically, this clause outlines the necessary information or documentation needed to verify the person's identity and the method by which the link is created, such as through registration forms, identification checks, or digital authentication. Its core practical function is to ensure that the correct individual is formally recognized and authorized in the relevant context, thereby reducing the risk of misidentification or unauthorized access.
Linking a Person. Level File to the Prescribed Medicines File
1. Create data set PERSX by sorting a Full Year Population Characteristics File (file HCXXX), by the person identifier, DUPERSID. Keep only variables to be merged on to the prescribed medicines file and DUPERSID.
2. Create data set PMEDS by sorting the prescribed medicines file by person identifier, DUPERSID.
3. Create final data set NEWPMEDS by merging these two files by DUPERSID, keeping only records on the prescribed medicines file. The following is an example of SAS code, which completes these steps: PROC SORT DATA=HCXXX(KEEP=DUPERSID AGE31X SEX RACEX) OUT=PERSX; BY DUPERSID; RUN; PROC SORT DATA= HC077A OUT=PMEDS; BY DUPERSID; RUN; DATA NEWPMEDS; MERGE PMEDS (IN=A) PERSX(IN=B); BY DUPERSID; IF A; RUN;
Linking a Person. Level File to the Emergency Room Visit File
1. Create data set PERS by sorting the person-level file, HC003, by the person identifier, DUPERSID. Keep only variables to be merged on to the emergency room visit file and DUPERSID.
2. Create data set EROM by sorting the emergency room visit file by person identifier, DUPERSID.
3. Create final data set NEWEROM by merging these two files by DUPERSID, keeping only records on the emergency room visit file. The following is an example of SAS code which completes these steps: PROC SORT DATA=HC003(KEEP=DUPERSID AGE SEX RACEX) OUT=PERSX; BY DUPERSID; RUN; PROC SORT DATA=EROM; BY DUPERSID; RUN; DATA NEWEROM; MERGE EROM (IN=A) PERSX(IN=B); BY DUPERSID; IF A; RUN;
Linking a Person. Level File to the Hospital Inpatient Stays File
1. Create data set PERS by sorting the the person-level file, HC003, by the person identifier, DUPERSID. Keep only variables to be merged on to the hospital inpatient stays file and DUPERSID.
2. Create data set STAZ by sorting the hospital inpatient stays file by person identifier, DUPERSID.
3. Create final data set NEWSTAZ by merging these two files by DUPERSID, keeping only records on the hospital inpatient stays file. The following is an example of SAS code which completes these steps: PROC SORT DATA=HC003(KEEP=DUPERSID AGE SEX EDUC) OUT=PERSX; BY DUPERSID; RUN; PROC SORT DATA=STAYS; BY DUPERSID; RUN; DATA NEWSTAYS; MERGE STAYS (IN=A) PERSX(IN=B); BY DUPERSID; IF A; RUN;
Linking a Person. Level File to the Office-Based Medical Provider Visit File
1. Create data set PERS by sorting the person-level file, HC003, by the person identifier, DUPERSID. Keep only variables to be merged on to the office-based medical provider visit file and DUPERSID.
2. Create data set OBMP by sorting the office-based medical provider visit file by person identifier, DUPERSID.
3. Create final date set NEWOBMP by merging these two files by DUPERSID, keeping only records on the office-based medical provider visit file. The following is an example of SAS code which completes these steps: PROC SORT DATA=HC003(KEEP=DUPERSID AGE SEX RACEX) OUT=PERSX; BY DUPERSID; RUN; PROC SORT DATA=OBMP; BY DUPERSID; RUN; DATA NEWOBMP; MERGE OBMP (IN=A) PERSX(IN=B); BY DUPERSID; IF A; RUN;
Linking a Person. Level File to the Office-Based Medical Provider Visit File
1. Create data set PERSX by sorting the Full Year Population Characteristics File (file, HCXXX, by the person identifier, DUPERSID. Keep only variables to be merged on to the office-based medical provider visit file and DUPERSID.
2. Create data set OBMP by sorting the office-based medical provider visit file by person identifier, DUPERSID.
3. Create final date set NEWOBMP by merging these two files by DUPERSID, keeping only records on the office-based medical provider visit file. The following is an example of SAS code which completes these steps: PROC SORT DATA=HCXXX(KEEP=DUPERSID AGE SEX RACEX) OUT=PERSX; BY DUPERSID; RUN; PROC SORT DATA=OBMP; BY DUPERSID; RUN; DATA NEWOBMP; MERGE OBMP (IN=A) PERSX(IN=B); BY DUPERSID; IF A; RUN;
