<config>
   <!-- Field that tells plugin to process or exit -->
   <controlattribute>bah_searchtype_text</controlattribute>

    <!-- Field that identifies the EPIDI field to use -->
   <!-- <edipifield>bah_mvipatientidentifier_text</edipifield> -->

    <!-- List of fields to pull from the Filter -->
    <!-- Used to populate the Insert/Update for the contact -->
 <queryfields>
  <field odata='FirstName' schema='firstname' type='string' />
  <field odata='LastName' schema='lastname' type='string' />
  <field odata='bah_edipi_text' schema='bah_edipi_text' type='string' />
  <field odata='bah_ssn_text' schema='bah_ssn_text' type='string' />
  <field odata='bah_dob_date' schema='bah_dob_date' type='date' />
  <field odata='MiddleName' schema='middlename' type='string' />
  <field odata='bah_branch_text' schema='bah_branch_text' type='string' />
  <field odata='bah_placeofbirth_city_text' schema='bah_placeofbirth_city_text' type='string' />
  <field odata='bah_placeofbirth_state_code' schema='bah_placeofbirth_state_code' type='optionset' />
  <field odata='Telephone1' schema='telephone1' type='string' />
  <field odata='EMailAddress1' schema='emailaddress1' type='string' />
  <field odata='Address1_Line1' schema='address1_line1' type='string' />
  <field odata='Address1_Line2' schema='address1_line2' type='string' />
  <field odata='Address1_City' schema='address1_city' type='string' />
  <field odata='Address1_StateOrProvince' schema='address1_stateorprovince' type='string' />
  <field odata='vhacrm_address1_stateid' schema='vhacrm_address1_stateid' type='lookup-vhacrm_state' />
  <field odata='Address1_PostalCode' schema='address1_postalcode' type='string' />
  <field odata='Address1_Country' schema='address1_country' type='string' />
  <field odata='vhacrm_address1_countryid' schema='vhacrm_address1_countryid' type='lookup-vhacrm_country' />
  <field odata='bah_dateofdeath_date' schema='bah_dateofdeath_date' type='date' />
  <field odata='GenderCode' schema='gendercode' type='optionset' />
  <field odata='bah_mvipatientidentifier_text' schema='bah_mvipatientidentifier_text' type='string' />
  <field odata='bah_mmn_text' schema='bah_mmn_text' type='string' />
  <field odata='NickName' schema='nickname' type='string' />
  <field odata='bah_preferredfacility_text' schema='bah_preferredfacility_text' type='string' />
  <field odata='bah_source_text' schema='bah_source_text' type='string' />
  <!-- <field odata='bah_participantid_number' schema='bah_participantid_number' type='numeric' /> -->
 </queryfields>
 <searches>
  <search name="mvi id search">
   <field name="bah_mvipatientidentifier_text" type="string" />
  </search>
  <search name="edipi search">
   <field name="bah_edipi_text" type="string" />
  </search>
  <search name="ssn+lastname+dob search">
   <field name="bah_ssn_text" type="string" />
   <field name="lastname" type="string" />
   <field name="bah_dob_date" type="date" />
  </search>
  <search name="ssn" returnnone="true">
    <field name="bah_ssn_text" type="STRINGLAST4" />
  </search>
 </searches>
</config>