Modifying (deleting) Patient Information Identity

Under Patient Information, Identity we currently have the following options - Alias, Microchip and Pet tag.

Is it possible to delete or deactivate Alias and Pet Tag which we never use ?

 

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: Modifying (deleting) Patient Information Identity

You will need to modify the archetype 'Party.Patientpet'  and remove the lines relevant to those identifiers you dont use.

 

<node name="identities" path="/identities"
      type="java.util.HashSet" baseName="Identity" minCardinality="0"
      maxCardinality="*">
    <assertion name="archetypeRange">
        <propertyList name="archetypes">
            <propertyMap name="archetype">
                <property name="shortName"
                          value="entityIdentity.alias"/>
            </propertyMap>
            <propertyMap name="archetype">
                <property name="shortName"
                          value="entityIdentity.microchip"/>
            </propertyMap>
            <propertyMap name="archetype">
                <property name="shortName"
                          value="entityIdentity.petTag"/>
            </propertyMap>
            <!-- For jurisdictions that use rabies tags, uncomment the following -->
            <!--
            <propertyMap name="archetype">
                <property name="shortName" value="entityIdentity.rabiesTag"/>
            </propertyMap>
            -->
        </propertyList>
    </assertion>
</node>

You can see the above you can remove the mappings you dont need like so

<node name="identities" path="/identities"
      type="java.util.HashSet" baseName="Identity" minCardinality="0"
      maxCardinality="*">
    <assertion name="archetypeRange">
        <propertyList name="archetypes">
            <propertyMap name="archetype">
                <property name="shortName"
                          value="entityIdentity.microchip"/>
            <!--
            </propertyMap>
            <propertyMap name="archetype">
                <property name="shortName"
                          value="entityIdentity.petTag"/>
            </propertyMap>

            <propertyMap name="archetype">
                <property name="shortName"
                          value="entityIdentity.alias"/>
            </propertyMap>
             -->

            <!-- For jurisdictions that use rabies tags, uncomment the following -->
            <!--
            <propertyMap name="archetype">
                <property name="shortName" value="entityIdentity.rabiesTag"/>
            </propertyMap>
            -->
        </propertyList>
    </assertion>
</node>

<!-- and --> are comment tags anything between them is ignored...alternative just delete the parts 

<propertyMap name="archetype">
                <property name="shortName"
                          value="entityIdentity.petTag"/>
            </propertyMap>

            <propertyMap name="archetype">
                <property name="shortName"
                          value="entityIdentity.alias"/>
            </propertyMap>

Save the editted archetype and reupload it in the administration menu

Ben

Regards
 
Ben 
OpenVPMS Installer and Helper 
Ph: +61423044823 
Email: info[at]charltonit.com[dot]au
Syndicate content