<agents version="5.9.5" dateTime="08-10-2020 07:10:22" minorVersion="0.1">
  <agent name="CPP" agentType="CCD Export" class="DotNetExportAgent" assembly="ItemPool.dll" local="false" agentTransportType="Patient Portal">
    <add key="Initialize" value="Yes" />
    <options>
      <add key="Xml_Characters_To_Remove" value="&amp;#x0;|&amp;#x00;|&amp;#x1F;|&amp;#x10;|&amp;#xB;|&amp;#x0B;|&amp;#x14;|&amp;#x1E;|&amp;#x5;|&amp;#x1;" /> <!--XML characters to be removed from document before sending it-->
      <add key="IDSettings" value="/wEyrQYAAQAAAP////8BAAAAAAAAAAwCAAAAVU5leHRHZW4uSW50ZXJmYWNlcy5Sb3NldHRhTWdyLCBWZXJzaW9uPTYuMC4wLjY4LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwFAQAAADROZXh0R2VuLkludGVyZmFjZXMuUm9zZXR0YU1nci5JRE9wdGlvbnMuSURDb2xsZWN0aW9uAwAAAA1MaXN0YDErX2l0ZW1zDExpc3RgMStfc2l6ZQ9MaXN0YDErX3ZlcnNpb24EAAAwTmV4dEdlbi5JbnRlcmZhY2VzLlJvc2V0dGFNZ3IuSURPcHRpb25zLklESXRlbVtdAgAAAAgIAgAAAAkDAAAAAQAAAAQAAAAHAwAAAAABAAAABAAAAAQuTmV4dEdlbi5JbnRlcmZhY2VzLlJvc2V0dGFNZ3IuSURPcHRpb25zLklESXRlbQIAAAAJBAAAAA0DBQQAAAAuTmV4dEdlbi5JbnRlcmZhY2VzLlJvc2V0dGFNZ3IuSURPcHRpb25zLklESXRlbRAAAAAGaURUeXBlC21zZ0xvY2F0aW9uBW1hdGNoHTxQcmltYXJ5TWF0Y2g+a19fQmFja2luZ0ZpZWxkHzxTZWNvbmRhcnlNYXRjaD5rX19CYWNraW5nRmllbGQYPE5vTWF0Y2g+a19fQmFja2luZ0ZpZWxkBHNhdmUJc2VuZEVtcHR5CHR5cGVDb2RlCWF1dGhvcml0eQthdXRob3JpdHlJRA1hdXRob3JpdHlUeXBlCWV4dFN5c3RlbQ9vdGhlckRCTG9jYXRpb24Jc2VuZEluVlhVCXNlbmRJblFCUAQBAAAAAAAAAQEBAQEBAAAuTmV4dEdlbi5JbnRlcmZhY2VzLlJvc2V0dGFNZ3IuSURPcHRpb25zLklEVHlwZQIAAAABAQEBAQEBAQIAAAAF+////y5OZXh0R2VuLkludGVyZmFjZXMuUm9zZXR0YU1nci5JRE9wdGlvbnMuSURUeXBlAQAAAAd2YWx1ZV9fAAgCAAAAAgAAAAYGAAAABFBJRDMAAAAAAAAKCgoKCgoAAAs=" /> <!--Serialized string representation of all the ID settings.-->
      <add key="External_System_Name" value="{[NextGen NextMD]}" /> <!--Name of the external system with which Rosetta agent exchanges data-->
      <add key="External_System_To_Xref_Encounter_Id" value="{[CCDAR21]}" /> <!--The name of the system used for cross-referencing of encounter only, if it is different from external system (for example, hospital system used for cross-referencing encounter ID used by a lab interface whose external system is the lab) -->
      <add key="Use_Ext_Id_From_System" value="{[CCDA]}" /> <!--The name of the external system used for cross referencing providers, payers, employers and locations-->
      <add key="Code_Tables_External_System_Name" value="{[CCDAR21]}" /> <!--The external system to use to cross-reference code_tables codes. If not set the external system set will be used-->
      <add key="Mstr_lists_External_System_Name" value="{[CCDAR21]}" /> <!--The external system to use to cross-reference mstr-lists codes. If not set the external system set will be used-->
      <add key="Interface_User_Id" value="{[-194]}" /> <!--NextGen user id for interface-->
      <add key="Practice_Id" value="{[52d88fda-19bd-4b3b-a4d8-72e7e22ca8b3]}" /> <!--This is the practice id-->
      <add key="Practice_Options" value="{[CrossReference]}" /> <!--Define how interface gets practice id-->
      <add key="Practice_Id_Location" value="{[MSH/SendingFacility/ID]}" /> <!--Indicates message field in which practice id is sent to or received from external system-->
      <add key="Database_Query_Timeout" value="60" /> <!--Database query timeout value in seconds-->
      <add key="Dump_Input" value="Yes" /> <!--Enable this option if you would like Rosetta agent to trace the message-->
      <add key="Skip_Message_On_Unhandled_Error" value="Yes" /> <!--Enable this option if you would like Rosetta agent to skip the message when unhandled exception occurs-->
      <add key="Time_Zone" value="{[Default Behavior]}" /> <!--Time Zone of the external system data. Note: This option is only valid when the NextGen system timezone option is set-->
      <add key="Write_To_Exception_Folder" value="No" /> <!--Enable this option to save failed messages to the exception folder-->
      <add key="Executed_By_RHT" value="No" /> <!--Agent is being executed by Clinical Message Manager-->
      <add key="Enable_Advanced_Audit" value="Yes" /> <!--Enable this option if you would like Rosetta agent to do advanced audit when sys_info.ng_audit_enable_ind set to yes-->
      <add key="Enable_Agent_Activity_Serialization" value="Yes" /> <!--Enable this option if you would like Rosetta agent to serialize and store in db all agent activities-->
      <add key="External_Message_Size_Limit" value="2" /> <!--Maximum allowed external message logging size (KB). If the option is set to 0 or blank or verbose logging is enabled, the option will be ignored. When option is set above 1 and verbose logging is disabled CCDA and HL7 messages will not be logged-->
      <add key="Content_Generation_Filter" value="{[AdvanceDirectives]}{[Allergies]}{[Assessment]}{[Demographics]}{[Balances]}{[NextOfKin]}{[BirthHistory]}{[Diagnoses]}{[DisabilityStatus]}{[Encounters]}{[EncounterCareTeamMembers]}{[FamilyHistory]}{[FunctionalStatus]}{[HealthConcern]}{[HistoryOfPresentIllness]}{[Immunizations]}{[Instructions]}{[LabResults]}{[MedicalEquipment]}{[Medications]}{[MentalStatus]}{[PlanOfCare]}{[Problems]}{[IncludeResolvedProblems]}{[IncludeActiveChronicProblems]}{[IncludeActiveAcuteProblems]}{[Procedures]}{[SocialHistory]}{[VitalSigns]}{[FunctionalStatus]}{[GeneralStatus]}{[MentalStatus]}{[ReviewOfSystems]}{[PastMedicalHistory]}{[HistoryOfPresentIllness]}{[CareTeams]}{[ClinicalNotes]}{[ConsultNote]}{[DischargeSummaryNote]}{[HistoryPhysicalNote]}{[ImagingNarrativeNote]}{[LaboratoryReportNarrativeNote]}{[PathologyReportNarrativeNote]}{[ProcedureNote]}{[ProgressNote]}" />" /> <!--The clinical information will be collected if the information item get checked-->
      <add key="Max_Export_Records_Per_Cycle" value="100" /> <!--Number of maximum export messages to process from NextGen export table in a single cycle-->
      <add key="Use_Locked_Encounter_Logic" value="Yes" /> <!--When this option is enabled, the agent will include the locked encounter export logic in its select statement-->
      <add key="Export_Changed_By_Interface" value="No" /> <!--When this option is enabled, agent will export records updated or created by interface-->
      <add key="Enterprise_To_Send" value="" /> <!--List of enterprises for which agent will export data-->
      <add key="Practice_To_Send" value="" /> <!--List of practices for which agent will export data. This option is valid only for a multi-practice setup. For demographics, interface will only send information if patient has chart in any of the practice selected-->
      <add key="Location_To_Send" value="" /> <!--List of location for which agent will export data-->
      <add key="Provider_To_Send" value="" /> <!--List of provider for which agent will export data-->
      <add key="Export_Patient_Insurance" value="Yes" /> <!--When this option is enabled, agent will export person insurance information-->
      <add key="Export_Relation_Insurance" value="No" /> <!--When this option is enabled, agent will export person relation insurance information-->
      <add key="Export_Patient_Encounter" value="Yes" /> <!--When this option is enabled, agent will export patient encounter information-->
      <add key="SEND_WORKPHONE_FROM_PERSON_EMPLOYRES" value="No" /> <!--When this option is enabled, agent will export work phone numbers from person employers table-->
      <add key="Enc_Export_Patient_Diagnosis" value="Yes" /> <!--When this option is enabled, agent will export diagnosis information from Patient Diagnosis table. Otherwise, agent will export from Encounter Diagnosis table-->
      <add key="Enc_Export_Charges" value="No" /> <!--When this option is enabled, agent will export patient procedure information from Charges table. Otherwise, agent will export from  Patient Procedure table.-->
      <add key="Send_ICD9" value="No" /> <!--When this option is enabled, agent will export ICD codes instead of diagnosis key-->
      <add key="SEND_ENC_NBR" value="No" /> <!--When this option is enabled, agent will export encounter number from Patient Encounter table-->
      <add key="SEND_ACCOUNT_NBR" value="No" /> <!--When this option is enabled, agent will export person number in PID.18-->
      <add key="Send_Ext_With_Phone_Num" value="No" /> <!--When this option is enabled, agent will export phone number extension-->
      <add key="Send_Department_Code" value="No" /> <!--When this option is enabled, agent will export department code from sim codes-->
      <add key="SEND_ENC_BILLABLETIMESTAMP" value="No" /> <!--When this option is enabled, agent will export billable timestamp instead of encounter timestamp-->
      <add key="Enc_User_Defined1_In_Pv1" value="No" /> <!--When this option is enabled, agent will export user define1 value from Patient Encounter table in PV1 facility field-->
      <add key="Format_Phone_And_Zip_For_Export" value="No" /> <!--When this option is enabled, agent will format phone numbers as (xxx)-xxx-xxxx and zip codes as xxxxx-xxxx-->
      <add key="Trim_Patient_Id_Numbers" value="Yes" /> <!--Trim spaces from all person numbers-->
      <add key="Trim_Medical_Record_Numbers" value="No" /> <!--Remove zeroes from medical record number-->
      <add key="Always_Send_Diagnosis_Type" value="No" /> <!--When this option is enabled, the interface will send 'W' (Working) diagnosis type in GT1-6 field-->
      <add key="Include_Inactive_Medications_If_Stopped_During_The_Encounter" value="No" /> <!--When this option is enabled, the interface will include inactive medications that has the same stopped date as the date of an encounter timestamp-->
      <add key="Use_PracId_As_Org_Name_For_MRN" value="No" /> <!--When this option is enabled, agent will use external practice id as MRN organization name when exporting demographics messages-->
      <add key="Export_Billable_Encounter" value="Yes" /> <!--This will enable to generate CCD if there are Billable encounters-->
      <add key="Export_Clinical_Encounter" value="{[Ignore]}" /> <!--Option to send clinical encounter-->
      <add key="Export_Ins_From_Person_Payer" value="Yes" /> <!--Enable this option to send insurance contact information like payer name, contact person and address from person payer table-->
      <add key="Send_Multiple_Patient_Races" value="Yes" /> <!--When set to yes, agent will export all race records for the person. If set to no, agent will export first race record for the person-->
      <add key="Send_Multiple_Patient_Ethnicities" value="Yes" /> <!--When set to yes, agent will export all ethnicities records for the person. If set to no, agent will export first ethinicity record for the person-->
      <add key="Race_Field_Format" value="{[Child]}" /> <!--Option to set format primary and alternative codes while exporting-->
      <add key="Ethnicity_Field_Format" value="{[Child]}" /> <!--Option to set format primary and alternative codes while exporting-->
      <add key="Payer_To_Send" value="" /> <!--List of payers for which agent will export data-->
      <add key="Automatically_Include_Sensitive_Encounter_Information" value="No" /> <!--When set to 'yes', all the sensitive encounter information will be added in the document-->
      <add key="Use_Portal_Sensitive_Encounter_Indicator" value="No" /> <!--When set to 'yes', the system will consider the portal sensitive encounter flag-->
      <add key="Do_Not_Encode_Ampersand" value="No" /> <!--When this option is enabled, while encoding characters like single quote (&#39;), double quote (&#34;), etc., the ampersand will not be encoded-->
      <add key="Max_Pre_Address_Records_For_Export" value="9999" /> <!--Number of maximum previous address records to include for each export-->
      <add key="Provenance_Difference_Between_ImportedTimestamp_And_ModifyTimestamp" value="60" /> <!--Provenance Difference Between ImportedTimestamp And ModifyTimestamp, enter time in seconds-->
      <add key="CDA_Content_Selection_Filter" value="{[Encounters]}{[AdvanceDirectives]}{[Allergies]}{[IncludeResolvedAllergies]}{[Assessment]}{[EncounterCareTeamMembers]}{[ChiefComplaintAndReasonForVisit]}{[Diagnoses]}{[DisabilityStatus]}{[FamilyHistory]}{[Goals]}{[HealthConcern]}{[HealthStatusEvaluation]}{[HistoryOfPresentIllness]}{[Immunizations]}{[Instructions]}{[Interventions]}{[LabResults]}{[MedicalEquipment]}{[Medications]}{[IncludeInactiveMedications]}{[PayerInformation]}{[PlanOfCare]}{[Problems]}{[Procedures]}{[SocialHistory]}{[VitalSigns]}{[FunctionalStatus]}{[ReasonForReferral]}{[GeneralStatus]}{[MentalStatus]}{[ReviewOfSystems]}{[PastMedicalHistory]}{[HistoryOfPresentIllness]}{[CareTeams]}{[ClinicalNotes]}{[ConsultNote]}{[DischargeSummaryNote]}{[HistoryPhysicalNote]}{[ImagingNarrativeNote]}{[LaboratoryReportNarrativeNote]}{[PathologyReportNarrativeNote]}{[ProcedureNote]}{[ProgressNote]}" />" /> <!--The clinical information will be included to export, if the information item get checked-->
      <add key="Include_Prior_Name" value="Yes" /> <!--Include prior last and first name of the patient while generating CCDA documents-->
      <add key="Use_Rendering_Provider_As_Author" value="No" /> <!--Use rendering provider as C-CDA author-->
      <add key="Display_Codes_In_Human_Readable_Problems_And_Encounters" value="No" /> <!--Display Codes In Human Readable Problems And Encounters-->
      <add key="Include_Sdoh_Patient_Information" value="Yes" /> <!-- When set to 'yes', SDOH related data will be added in the C-CDA document -->
      <add key="PV1_19_Encounter_Xref" value="{[External Encounter ID]}" /> <!--How the encounter ID in PV1.19 should be handled-->
      <add key="PV1_50_Encounter_Xref" value="{[Internal Encounter ID]}" /> <!--How the encounter ID in PV1.50 should be handled-->
      <add key="Use_Case_Xref" value="Yes" /> <!--When this option is enabled, agent will lookup case cross reference for case ID-->
      <add key="Location_ID_Option" value="{[External Location ID]}" /> <!--Select how Location ID should be handled-->
      <add key="Category_ID_Option" value="{[Category Name]}" /> <!--Select how Category ID should be handled-->
      <add key="Provider_ID_Option" value="{[Provider GUID]}" /> <!--Select how Provider ID should be handled-->
      <add key="Use_Payor_Code_Xref" value="Yes" /> <!--When this option is enabled, agent will lookup payer code cross reference for external ID-->
      <add key="Use_Resources_Xref" value="Yes" /> <!--When this option is enabled, agent will lookup resource cross reference for external ID-->
      <add key="Event_ID_Option" value="{[External Event ID]}" /> <!--Select how Event ID should be handled-->
      <add key="Use_Mstr_List_Xref" value="Yes" /> <!--When this option is enabled, agent will lookup master list cross reference for external ID-->
      <add key="Use_Code_Xref" value="Yes" /> <!--When this option is enabled, agent will lookup code tables cross reference for external ID-->
      <add key="Use_Specialty_Xref" value="No" /> <!--When this option is enabled, agent will lookup speciality code cross reference for external ID-->
      <add key="Employer_ID_Option" value="{[External Employer ID]}" /> <!--How the employer ID should be handled-->
      <add key="Use_Code_Xref_For_Allergy_Type" value="No" /> <!--When this option is enabled, agent will lookup allergy code cross reference for allergies-->
      <add key="Continue_Exporting_When_No_Cross_Reference_Internal_Values_Present" value="Yes" /> <!--When this option is enabled, agent will continue epxorting even when no cross reference internal values present-->
      <add key="Use_Consent_External_Codes" value="Yes" /> <!--When this option is enabled, agent will export consent external (value) code instead of consent(action) code-->
      <add key="NextGen_Workflow_Todo_Category" value="" /> <!--Workflow category name where the location will be sent-->
      <add key="Workflow_Subject" value="" /> <!--Subject of ask created by this interface-->
      <add key="Update_Order_Creator_Workflow" value="No" /> <!--(Labs only)Enable this option to send task notificaton to order creator-->
      <add key="Update_Ordering_Provider_Workflow" value="Yes" /> <!--Enable this option to send task notificaton to ordering provider-->
      <add key="Update_Workflow_Group" value="No" /> <!--Enable this option to send task notificaton to a group-->
      <add key="Use_Simple_Workflow_Notify" value="Yes" /> <!--Creates workflow notification tasks of simple type i.e. without assigning. Groups are not affected by this option. For example, if workflow option is set up tp notify other creator, ordering provider, and a group, the order creator and ordering provider will get simple notification type and group members will get notification with assigning-->
      <add key="Treat_Blank_Result_Flags_as_Normal_Task_Priority" value="No" /> <!--The option only affects tasking. When this option is set to 'yes' the interface will not create high priority tasks if the flag on the result does not contain a value(is empty). If any other abnormal flags are received, the tasks will still be created as high priority. Be aware that a result with empty abnormal flag may contain critical values, yet the task will not reflect it-->
      <add key="Backup_User_To_Notify" value="" /> <!--Use this option to identify users who will receive notification when no ordering provider is available. If ordering provider is available then users will not receive notification-->
      <add key="RosettaHoldingTankUserToNotify" value="" /> <!--Option for Notifying Logged In Clinical Message Manager User-->
      <add key="Use_Plan_Code" value="No" /> <!--When this option is enabled, agent will use external player ID from InsurancePlanId field from IN1 segment-->
      <add key="Export_Ext_Person" value="No" /> <!--When set to yes, the agent will only export persons that have the external_id column valued in the person_external_xref table for the external system this agent is using-->
      <add key="Systems_To_Send" value="" /> <!--Select labs/or other systems whose results are to be sent out to a single external system-->
      <add key="Document_Convert_Format" value="{[NoConversion]}" /> <!--Specify which format the interface will convert to-->
      <add key="Image_Convert_Format" value="{[NoConversion]}" /> <!--Specify which format the interface will convert to-->
      <add key="Document_Export_Category" value="" /> <!--Use this option to identify EHR categories that the exported documents should belong to, leave blank to export all documents-->
      <add key="Document_Export_Description" value="" /> <!--A list of partial file descriptions that the exported documents should have, leave blank to export all documents-->
      <add key="Document_Export_Carrier" value="{[ED]}" /> <!--Use this option to identify the encoding to use while exporting the documents-->
      <add key="Document_Export_RP_Path_Option" value="Yes" /> <!--When this option is enabled, agent will put file path in the RP message pointer (only valid for RP carrier)-->
      <add key="Document_Export_Type" value="{[DOC]}{[IMG]}" /> <!--Use this option to identify types of files to export-->
      <add key="RP_Document_Export_Path" value="" /> <!--This is the folder that the document will be exported to. This needs to be different that where HL7 message is located-->
      <add key="HL7_Locked_Enc_Export_ED_Encoding_Type" value="{[MultipartMime]}" /> <!--Multiple OBX encoding types can be used depending on the receiving system. Use the appropriate option for how the receiving system can receive encapsulated documents/images-->
      <add key="HL7_Locked_Enc_Export_ED_Chunk_Size" value="16000" /> <!--Specify how many charcaters to send in each OBX fior encapsulated data-->
      <add key="Export_Documents" value="No" /> <!--When set to 'Yes', the EHR Documents will be exported with CCD-->
      <add key="Generate_Longitudinal_CCD" value="No" /> <!--When set to 'yes', the content of the CCD will be longitudinal-->
      <add key="Exp_Thread_Sleep_Time" value="3000" /> <!--For TCPIP export agent, this is the interval after which agent will poll NextGen database for new items.
															For File import agent, this is the interval after which agent queries input folder for new files.
															For Web Service agent, this is an interval after which agent will query service provider for new data.-->
      <add key="Initialize" value="Yes" /> <!--Enable or disable starting of agent when Rosetta Shell starts. You must also set Auto Start Agents check box under general preferences tab-->
      <add key="Case_Reporting_Trigger_Codes" value="{[UseCDCReportingCode]}{[DiagnosisUseCDCReportingCode]}{[LabResultsUseCDCReportingCode]}{[LabTestsUseCDCReportingCode]}{[OrganismsUseCDCReportingCode]}" /> <!--This option allows users to specify which codes will trigger the export of a report to a registry or public health agency-->
      <add key="Track_For_California_PD_Registry_Requirements" value="No" /> <!--If set to YES, a tracking record will be created for the patient for the practice-->
      <add key="Document_Format" value="{[C-CDA R2.1]}" /> <!--The format of the medical summary-->
      <add key="Default_CCDAR21_Template" value="{[CCD]}" /> <!--Default C-CDA R2.1 format-->
      <add key="Care_Plan_Document_Type" value="{[18776-5]}" /> <!--Select care plan document type when default C-CDA R2.1 template is care plan-->
      <add key="Referral_Document_Type" value="{[57133-1]}" /> <!--Select referral document type when default C-CDA R2.1 template is referral note-->
      <add key="Legal_Authenticator" value="{[Intrf_queue User]}" /> <!--Select the option to use for CCDA legal authentication-->
      <add key="Designated_User_Id_For_LA" value="" /> <!--Designated user ID for legal authentication of generated CCDA's when the legal authentication selection > designated user id option value is selected. If another legal authenticator selection value is selected, this option will be ignored-->
      <add key="CDACaseReport" value="No" /> <!--Enable this event if you like to queue CDA case report records for export-->
      <add key="LockedEncounter" value="Yes" /> <!--Enable this event if you like to queue locked encounter records for export-->
      <add key="LockedEncounterMonitor" value="No" /> <!--Enable this event if you like to queue locked encounter records for export using the monitor process-->
      <add key="Excluded_Locked_Encounters_Created_By_Users" value="" /> <!--Encounters created by the users/apps whose IDs are on this list will NOT be exported with locked encounter export-->
      <add key="Do_Not_Export_Locked_Encounters_With_All_Zero_Time" value="No" /> <!--Ignore locked encounters where time portion of encounter timestamp (ENC_TIMESTAMP column in PATIENT_ECNOUNTER table) is set to all zero (for example, '2016-08-01 00:00:00.000')-->
      <add key="Only_Send_Updated_Reports_On_Data_Changes" value="No" /> <!--Enable this option if you like to export the document only when there is data update-->
      <add key="Code_Set_For_Gender" value="{[2.16.840.1.113883.1.11.1]}" /> <!--Code set to use for gender codes-->
      <add key="Code_Set_For_Country" value="{[ISO 3166]}" /> <!--Code set to use for country codes-->
      <add key="Code_Set_For_Marital_Status" value="{[2.16.840.1.113883.1.11.12212]}" /> <!--Code set to use for marital codes-->
      <add key="Code_Set_For_Language" value="{[2.16.840.1.113883.1.11.11526]}" /> <!--Code set to use for language codes-->
      <add key="Code_Set_For_Confidentiality" value="{[2.16.840.1.113883.1.11.16926]}" /> <!--Code set to use for confidentiality codes-->
      <add key="Code_Set_For_Route_Of_Administration" value="{[2.16.840.1.113883.3.26.1.1.1]}" /> <!--Code set to use for route of administration codes-->
      <add key="Code_Set_For_Form_Dosage_Form_Code" value="{[2.16.840.1.113883.3.88.12.3221.8.11]}" /> <!--Code set to use for dosage form eg.:Medication-->
      <add key="Code_Set_For_Prescription_Type" value="{[2.16.840.1.113883.6.96]}" /> <!--Code set to use for prescription type codes-->
      <add key="Code_Set_For_Allergy_Severity" value="{[2.16.840.1.113883.6.96]}" /> <!--Code set to use for allergy severity codes-->
      <add key="Code_Set_For_Insurance_Relation" value="{[2.16.840.1.113883.1.11.19809]}" /> <!--Code set to use for route of administration codes-->
      <add key="Code_Set_For_Family_Relation" value="{[2.16.840.1.113883.1.11.19579]}" /> <!--Code set to use for insurance relation codes-->
      <add key="Code_Set_For_Allergy_Ingredient" value="{[2.16.840.1.113883.4.9]}" /> <!--Code set to use for allergy ingredient codes-->
      <add key="Code_Set_For_Race" value="{[2.16.840.1.113883.1.11.14914]}" /> <!--Code set to use for race codes-->
      <add key="Code_Set_For_Insurance_Type" value="{[2.16.840.1.113883.3.88.12.3221.5.2]}" /> <!--Code set to use for insurance type codes-->
      <add key="Code_Set_For_Claim_Type" value="{[Claim Type/Claim Filing Indicator Code]}" /> <!--Code set to use for claim type codes-->
      <add key="Code_Set_For_Religion" value="{[2.16.840.1.113883.1.11.19185]}" /> <!--Code set to use for religion codes-->
      <add key="Code_Set_For_Ethnicity" value="{[2.16.840.1.113883.1.11.15836]}" /> <!--Code set to use for ethnicity codes-->
      <add key="Code_Set_For_Abnormal_Result_Flag" value="{[2.16.840.1.113883.5.83]}" /> <!--Code set to use for abnormal result flag eg.:Medication-->
      <add key="Code_Set_For_Diagnosis_Clinical_Status" value="{[2.16.840.1.113883.6.96]}" /> <!--Code set to use for diagnosis clinical status-->
      <add key="Allow_Duplicate_CCD" value="No" /> <!--Set to 'yes' to export duplicate CCD's-->
      <add key="Deprecate_CCD" value="Yes" /> <!--Set to 'yes' to deprecate previous exported CCD's-->
      <add key="Bypass_HIE_Consent" value="No" /> <!--Set to 'yes' to bypass HIE consent-->
      <add key="Use_NextGenOid_for_Default_Practice_ExternalId" value="Yes" /> <!--When this option is enabled, agent will use the default NextGen OID for the practice external ID when the external ID of the practice cannot be determined-->
      <add key="Encounter_Id_Xref" value="{[Internal Encounter ID]}" /> <!--Select the source cross reference for encounter ID-->
      <add key="Information_To_Include_For_Clinical_Context" value="{[Diagnoses]}{[Medications]}{[Allergies]}{[Immunizations]}{[PlanOfCare]}{[Problems]}{[MedicalEquipment]}"  /> <!--Use this option to specify clinical information include when collecting encounter level CCD-information-->
      <add key="Tobacco_Procedures" value="{[68535-4= Have you used tobacco in the last 30 days [SAMHSA]]}{[39240-7= Tobacco use CPHS]}{[11366-2= History of tobacco use Narrative]}{[68536-2= Have you used smokeless tobacco product in the last 30 days [SAMHSA]}{[72166-2= Tobacco smoking status NHIS]}" /> <!--Use this option to specify tobocco procedures. Inital values of this option should be 2016 codes-->
      <add key="Sensitive_Warning_Message_Location" value="{[SectionLevel]}" /> <!--Use this option to specify the location where you want to have the sensitive warning message in the document-->
      <add key="Include_Sensitive_Data" value="No" /> <!--Set to 'Yes' to include confidential data in CCD documents-->
      <add key="Use_EC_Data_Stripping_for_EC_Disabled_Patients" value="No" /> <!--Set to 'yes' to strip sensitive data for enterprise chart disabled patients-->
      <add key="Include_Email_In_CCD" value="Yes" /> <!--Set to 'yes' to include email in CCD documents-->
      <add key="Custom_XPATH" value="{[ClinicalDocument/custodian/assignedCustodian/representedCustodianOrganization/id=]}" /> <!--Use this option to insert XML at various xpath for CDA documents-->
      <add key="Confidentiality_Code_Options" value="" /> <!--The confidentiality code that will be sent to the registry-->
      <add key="Confidentiality_Code_Source" value="{[dftl]}" /> <!--The confidentiality source code-->
      <add key="Doc_Ext_As_Guid" value="Yes" /> <!--When this option is enabled, agent will generate new GUID for CDA document ID extension-->
      <add key="CCDA_R11_Compatible" value="Yes" /> <!--Make C-CDA R1.1 Compatible when creating C-CDA R2.1 document-->
      <add key="Include_Legacy_Template_Ids" value="No" /> <!--Include legacy template id's only when generating C-CDA doc-->
      <add key="Export_IMO_Code" value="Yes" /> <!--Import IMO when generating C-CDA doc-->
      <add key="Lookup_Medication_RxNorm_Codes_Based_On_MedId" value="Yes" /> <!--When set to 'yes', an attempt will be made to get corresponding RxNorm medication code based on MedId (patient_medication table)-->
      <add key="Store_Version_History" value="No" /> <!--When set to 'yes', the version history of the exported document is maintained-->
      <add key="Document_Level_Confidentiality_Code" value="{[Normal]}" /> <!--Select document level confidentiality code-->
      <add key="Sensitive_Warning_Message" value="As per patient privacy policy some of the clinical information may not be visible." /> <!--The warning message will be added in the document when sensitve information is excluded-->
      <add key="CDA_Content_Date_Limit" value="NoLimit" /> <!--Allows selecting number of days back (from today) to limit the CDA Content data collected for a patient.-->
      <add key="CDA_Validation_Enable" value="No" /> <!--When the option is enabled, agent will attempt to validate the CCDA document-->
      <add key="CDA_Validation_Bypass" value="No" /> <!--When the option is enabled, agent will attempt to bypass the CCDA document validation-->
      <add key="CDA_Validation_Export_OnValidationFail_Cancel_Export" value="No" /> <!--When the option is enabled, agent will not export the CDA if there are validation errors-->
      <add key="CDA_Validation_Export_OnValidatorError_Cancel_Export" value="No" /> <!--When the option is enabled, agent will not export the CDA if validation could not be performed due to error-->
      <add key="Is_Dispatcher" value="No" /> <!--When this option is enabled, agent will become a dispatcher assigning tasks to other worker agents in configured pool-->
      <add key="Is_Worker" value="No" /> <!--Hidden option which determines if this agent is a worker agent for a dispatcher agent. Minion worker agents belong to a master dispatcher agent of the same agent type-->
      <add key="Persist_Disposition_Info" value="No" /> <!--Persist disposition information-->
      <add key="Gender_Export_Value" value="{[Current Gender]}" /> <!--Gender export value-->
      <add key="Worker_Pool" value="" /> <!--List of worker agents assigned to current dispatcher-->
      <add key="DefaultStyleSheetURI" value="http://www.nextgenshare.com/public/CDA_NGMU2.xsl" transportRelated="true" /> <!--Default style-sheet location-->
      <add key="Default_Intended_Recipient" value="" transportRelated="true" /> <!--Default intended recipient-->
      <add key="Skip_Store_Locally" value="No" transportRelated="true" />
      <add key="Transport_Type" value="Null or Not Required" transportRelated="true" /> <!--Transport type-->
      <add key="Include_Provenance_At" value="{[Document and Entry Level]}" /><!--Select the level at where provenance should be included in the document-->
    </options>
  </agent>
</agents>