Hi All
Hope your all good, I’ve created a C# API that integrates with EMIS using the using the EMIS EM_PACC com (IPatientAccessEMISWebV4_3) and the below methods.
Everything works locally fine, but when I deploy to our Azure VM IIS server, one call (FileRecord) does not work correctly. Its returning the below error. I’ve sent the same dataset locally and on the Azure server. Locally it sends, but Azure fails. The EMIS integration is working on the server as all the other calls work.
I’ve made sure all the Regions etc on the Server are set to UK and not US, but still not luck. Can someone here help?
Methods used
- InitializeWithID
- Logon
- GetOrganisation
- GetMatchedPatient
- GetMedicationIssues
- FileRecord
Error
Method FileRecord. Error = Invalid date format. Requires ‘dd/MM/yyyy’. (outcome: -1)
XML that failed
<?xml version="1.0" encoding="utf-16"?>
<MedicalRecord xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" PatientID="2881"
xmlns="http://www.e-mis.com/emisopen/MedicalRecord">
<ConsultationList>
<Consultation>
<GUID>c9d220a7-367d-4ad1-a2c2-63f1780cda1f</GUID>
<AssignedDate>09/04/2025</AssignedDate>
<UserID>
<RefID>2381</RefID>
<GUID>2cfefc49-f8a2-4ee8-95e0-812719b3c1f5</GUID>
</UserID>
<LocationTypeID>
<RefID>4884</RefID>
</LocationTypeID>
<OriginalAuthor>
<User>
<RefID>2381</RefID>
<GUID>2cfefc49-f8a2-4ee8-95e0-812719b3c1f5</GUID>
</User>
</OriginalAuthor>
<ElementList>
<ConsultationElement>
<GUID>95e9d5c5-884d-48e9-a379-08ff40fd5fef</GUID>
<DisplayOrder>1</DisplayOrder>
<ProblemSection>1</ProblemSection>
<Header>
<Value>23</Value>
<Term>Additional</Term>
</Header>
<Attachment>
<RefID>4884</RefID>
<GUID>95e9d5c5-884d-48e9-a379-08ff40fd5fef</GUID>
<AssignedDate>09/04/2025</AssignedDate>
<AuthorID>
<RefID>2381</RefID>
</AuthorID>
<OriginalAuthor>
<User>
<RefID>2381</RefID>
</User>
</OriginalAuthor>
<DescriptiveText>LungHealth Initial Review</DescriptiveText>
<Title>LungHealth Initial Review</Title>
<Address>234ec7f7-e717-4ece-9c58-797b0c6656ef.pdf</Address>
</Attachment>
<Event>
<AuthorID />
<OriginalAuthor>
<User />
</OriginalAuthor>
<Code />
<TermID />
<NumericValue />
<EventType>0</EventType>
</Event>
</ConsultationElement>
</ElementList>
</Consultation>
</ConsultationList>
<PeopleList>
<Person>
<RefID>2381</RefID>
<GUID>2cfefc49-f8a2-4ee8-95e0-812719b3c1f5</GUID>
</Person>
</PeopleList>
<LocationTypeList>
<LocationType>
<RefID>4884</RefID>
<Description>X-on medical centre (demo)</Description>
</LocationType>
</LocationTypeList>
</MedicalRecord>