Have you implemented OpenMRS? Please participate in the Implementation Site Survey. If you already have, thank you!
Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

An example record looks like this: (...check line #29 where the owner tag is '<owner type="recreate"></owner>')

Code Block
themeEclipse
languagexml
linenumberstrue
<items>
<SyncItem containedType="org.openmrs.Patient" key="7192b045-0a47-4fbe-a7dd-2ac23a78df7b" state="NEW">
<content>
<![CDATA53:50.072+0200</personDateCreated><birthdateEstimated type="boolean">true</birthdateEstimated><voided type="boolean">false</voided><birthdate type="timestamp">1948-01-01T00:00:00.000+0200</birthdate><dateCreated type="timestamp">2014-03-26T11:53:50.097+0200</dateCreated><gender type="string">F</gender><personVoided type="boolean">false</personVoided><uuid type="string">7192b045-0a47-4fbe-a7dd-2ac23a78df7b</uuid><dead type="boolean">false</dead><creator type="org.openmrs.User">f3fd6fab-3f4e-4beb-bb05-d729c05f6bd5</creator></org.openmrs.Patient>]>
</content>
</SyncItem>
<SyncItem containedType="org.openmrs.PersonAddress" key="cafda0f4-53ce-4ac6-a9ad-5dc742add329" state="NEW">
<content>
<![CDATA53:50.135+0200</dateCreated><stateProvince type="string">Eastern/Uburasirazuba</stateProvince><cityVillage type="string">Mpanga</cityVillage><address1 type="string">Rushonga</address1><address3 type="string">Rubaya</address3><uuid type="string">cafda0f4-53ce-4ac6-a9ad-5dc742add329</uuid><preferred type="boolean">true</preferred><creator type="org.openmrs.User">f3fd6fab-3f4e-4beb-bb05-d729c05f6bd5</creator><country type="string">Rwanda</country></org.openmrs.PersonAddress>]>
</content>
</SyncItem>
<SyncItem containedType="org.openmrs.PersonName" key="9fd417f1-600f-4472-86f1-d20431ac4988" state="NEW">
<content>
<![CDATA53:50.166+0200</dateCreated><givenName type="string">Collette</givenName><uuid type="string">9fd417f1-600f-4472-86f1-d20431ac4988</uuid><preferred type="boolean">true</preferred><creator type="org.openmrs.User">f3fd6fab-3f4e-4beb-bb05-d729c05f6bd5</creator></org.openmrs.PersonName>]>
</content>
</SyncItem>
<SyncItem containedType="org.openmrs.PersonAttribute" key="fd75f4da-2694-4b86-b4a3-643e0be91d16" state="NEW">
<content>
<![CDATA53:50.200+0200</dateCreated><attributeType type="org.openmrs.PersonAttributeType">8d87236c-c2cc-11de-8d13-0010c6dffd0f</attributeType><uuid type="string">fd75f4da-2694-4b86-b4a3-643e0be91d16</uuid><creator type="org.openmrs.User">f3fd6fab-3f4e-4beb-bb05-d729c05f6bd5</creator></org.openmrs.PersonAttribute>]>
</content>
</SyncItem>
<SyncItem containedType="org.openmrs.PatientIdentifier" key="d33e7fc7-3513-44d0-80b6-58ae513c29ba" state="NEW">
<content>
<![CDATA53:50.226+0200</dateCreated><uuid type="string">d33e7fc7-3513-44d0-80b6-58ae513c29ba</uuid><preferred type="boolean">true</preferred><identifierType type="org.openmrs.PatientIdentifierType">4e458867-9a68-4e55-9fe0-fb49fac4e6b0</identifierType><identifier type="string">4230341U-8</identifier><creator type="org.openmrs.User">f3fd6fab-3f4e-4beb-bb05-d729c05f6bd5</creator></org.openmrs.PatientIdentifier>]>
</content>
</SyncItem>
<SyncItem containedType="org.hibernate.collection.PersistentSortedSet" key="7192b045-0a47-4fbe-a7dd-2ac23a78df7b|addresses" state="UPDATED">
<content>
<![CDATA<org.hibernate.collection.PersistentSortedSet><owner type="recreate"></owner><entry type="update"></entry></org.hibernate.collection.PersistentSortedSet>]>
</content>
</SyncItem>
<SyncItem containedType="org.hibernate.collection.PersistentSortedSet" key="7192b045-0a47-4fbe-a7dd-2ac23a78df7b|names" state="UPDATED">
<content>
<![CDATA<org.hibernate.collection.PersistentSortedSet><owner action="recreate" properyName="names" type="org.openmrs.Patient" uuid="7192b045-0a47-4fbe-a7dd-2ac23a78df7b"/><entry action="update" type="org.openmrs.PersonName" uuid="9fd417f1-600f-4472-86f1-d20431ac4988"/></org.hibernate.collection.PersistentSortedSet>]>
</content>
</SyncItem>
<SyncItem containedType="org.hibernate.collection.PersistentSortedSet" key="7192b045-0a47-4fbe-a7dd-2ac23a78df7b|attributes" state="UPDATED">
<content>
<![CDATA<org.hibernate.collection.PersistentSortedSet><owner action="recreate" properyName="attributes" type="org.openmrs.Patient" uuid="7192b045-0a47-4fbe-a7dd-2ac23a78df7b"/><entry action="update" type="org.openmrs.PersonAttribute" uuid="fd75f4da-2694-4b86-b4a3-643e0be91d16"/></org.hibernate.collection.PersistentSortedSet>]>
</content>
</SyncItem>
<SyncItem containedType="org.hibernate.collection.PersistentSet" key="7192b045-0a47-4fbe-a7dd-2ac23a78df7b|identifiers" state="UPDATED">
<content>
<![CDATA<org.hibernate.collection.PersistentSet><owner action="recreate" properyName="identifiers" type="org.openmrs.Patient" uuid="7192b045-0a47-4fbe-a7dd-2ac23a78df7b"/><entry action="update" type="org.openmrs.PatientIdentifier" uuid="d33e7fc7-3513-44d0-80b6-58ae513c29ba"/></org.hibernate.collection.PersistentSet>]>
</content>
</SyncItem>
</items>

...

SOLUTION: Fix the xml by adding the missing attributes and run an sql update to use this new payload.