Hi,
I’m trying to write a link to an existing problem via the EMIS API, but whenever I send a ProblemLinkList it gets added in EMIS as a new problem.
I’ve included an example ConsultationElement below with a ProblemLinkList and Problem sections (as suggested by this previous post where the same thing was trying to be achieved).
What am I missing? Does the details need to match the one I’m linking to exactly or should I be omitting some/all of them?
<ConsultationElement>
<RefID>1</RefID>
<Header>
<Term>Problem</Term>
</Header>
<ProblemSection>1</ProblemSection>
<Event>
<RefID>1</RefID>
<GUID>ba2ec5e4-0ebd-4f48-8f3f-d58312036a13</GUID>
<AssignedDate>22/07/2026</AssignedDate>
<AssignedTime>11:16:32</AssignedTime>
<AuthorID>
<RefID>1</RefID>
</AuthorID>
<OriginalAuthor>
<User>
<RefID>1</RefID>
</User>
</OriginalAuthor>
<DisplayTerm>Fracture of fibula (disorder)</DisplayTerm>
<Problem>
<ExpectedDuration>0</ExpectedDuration>
<GroupingStatus>0</GroupingStatus>
<ProblemStatus>1</ProblemStatus>
<ProblemType>1</ProblemType>
<Significance>1</Significance>
</Problem>
<Code>
<Value>75591007</Value>
<Scheme>SNOMED</Scheme>
<Term>Fracture of fibula (disorder)</Term>
</Code>
<TermID>
<Value>75591007</Value>
<Scheme>SNOMED</Scheme>
<Term>Fracture of fibula (disorder)</Term>
</TermID>
<ProblemLinkList>
<Link>
<Target>
<DBID>1</DBID>
<RefID>1</RefID>
<GUID>D88E6382-D6E2-40A7-99EB-0C472EF43620</GUID>
<FileStatus>0</FileStatus>
</Target>
<LinkType>1</LinkType>
</Link>
</ProblemLinkList>
<EventType>1</EventType>
<Episodicity>3</Episodicity>
</Event>
</ConsultationElement>
Kind regards,
Chris