Appearance
Fix Patient XML Imports
EARLY PORTExample 1
When trying to import patient files you may be presented with a number of errors when attempting to import to best practice, these are a few common errors with fixes.
In this instance we receive the following error:
Unexpected end of file has occured. The following elements are not closed: BPSEHRV2, Line 150710, Position 1.
The key statement we are looking for here is (The following elements are not closed: BPSEHRV2) Using any decent text editor you can open the XML file and search for the above stated element (BPSEHRV2)
We can see from the search that there is only one instance of the element: BPSEHRV2, all elements must have an opening tag and a closing tag (Opening, Closing). In this error, it is missing the closing tag, lucky for us in the error message it states where the closing tag needs to be (Line 150710)
TIP
Simply by adding the following line the file will now successfully import into best practice.
Example 2
The above error:
The ‘BPSEHRV2’ start tag on line 2 position 2 does not match the end tag of ‘CorrespondenceIn’. Line 741637, position 3.
Can be a bit confusing at first but looking for key statements and elements such as (does not match the end tag of ‘CorrespondenceIn’), This is telling us that we have a closing tag but no opening tag.
Repeating the same steps above as:
Using any decent text editor you can open the XML file and search
You can see from the image above that a search for ‘CorrespondenceIn’ only revealed one result, trying to find the exact location of where we should put the opening tag of ‘correspondenceIn’ can be done by viewing another working import/export XML, in this case looking at other files we can see that correspondenceIn
is always places on the line after MedReferCorrespondence
.
TIP
Adding the following line after will now allow you to import the patient file