<%-- Document : index Created on : Mar 16, 2009, 9:50:33 AM Author : svalluripalli --%> <%@ page import="java.util.*" %> <%@ page import="gov.hhs.fha.nhinc.mpilib.*" %> <%@ page import="gov.hhs.fha.nhinc.properties.*" %> <%@page contentType="text/html" pageEncoding="UTF-8"%> <% String orgId = PropertyAccessor.getProperty("gateway", "localHomeCommunityId"); %> Opt In/Out Utility

Opt In/Opt Out Utility for <% out.println(orgId);%>

<% Patients pats = new Patients(); MiniMpi mpi = MiniMpi.GetMpiInstance(); pats = mpi.getPatients(); session.setAttribute( "patCount", pats.size() ); session.setAttribute("pats", pats); for (int x = 0; x " ); out.println(""); out.println(""); Identifiers newIds = new Identifiers(); for (Identifier id : pat.getIdentifiers()) { if (id.getOrganizationId().equals(orgId)) { out.println(""); out.println(""); newIds.add(id); } } pat.setIdentifiers(newIds); String checked = ""; if(pat.isOptedIn()) { checked="checked"; } out.println(""); out.println( " " ); } %>
Last Name First Name Organization Id: Patient Id: Opt In:
" + name.getLastName() + "" + name.getFirstName() + "" + id.getOrganizationId() + "" + id.getId() + "