# EMIS Partner API - FileRecord call - creating linked SNOMED codes **Category:** [open forum](https://openhealthhub.org/c/open-forum/9) **Created:** 2025-09-29 10:42 UTC **Views:** 55 **Replies:** 4 **URL:** https://openhealthhub.org/t/emis-partner-api-filerecord-call-creating-linked-snomed-codes/2865 --- ## Post #1 by @imfarazmalik Hello, I’m integrating our product with the EMIS Web Partner API, but I’ve hit a snag with filing pre-existing codes with `FileRecord`. The idea is, patient records have existing codes. When we file a consultation, the selected pre-existing codes should ideally pop up as ‘review’ instead of ‘new’, as that would mitigate flooding the patient’s problem section with codes. We try to construct the `` as follows. Note the attempt to use `` instead of ``: ```xml 3
Problem
3 d3d98838-cb0c-4caf-8811-bbdd5c0d233c 29/09/2025 2240 2240 29/09/2025 Renal impairment 236423003 SNOMED Renal impairment 236423003 SNOMED Renal impairment 1 47 47 2453A107-0B5E-457E-BE94-7905334CF965 0 1
``` When looking at the corresponding patient’s record, here’s how the same code appears: ```xml 0 1 0
Problem
36691332 36691332 {94635657-0B76-47D5-B5CC-C5B75F1A27C9} 0 28/09/2025 0 00:00:00 1295 1295 {E7D0737C-0922-448F-A3F2-9D3B8E232CE2} 1295 1295 {E7D0737C-0922-448F-A3F2-9D3B8E232CE2} 28/09/2025 Renal impairment -1 K060. READ2 Renal impairment 236423003 SNOMED K060 READ2 Renal impairment 236423003 SNOMED 0 1
``` Clearly this attempt failed. Is what we are attempting to do with `FileRecord` impossible? Or are we doing it wrong? The idea is to file codes, where appropriate, as *review*. @mayfield.g.kev hoping again that you’ve trodden this path before. Thanks in advance, Faraz --- ## Post #2 by @imfarazmalik The fix has been found. When linking codes, the following must be included: `` `` `3` --- ## Post #3 by @pacharanero Thanks @imfarazmalik for marking the topic as solved. If openhealthhub.org has been of help to you then please do spread the word about it! Also, I'm not sure if you are aware but there is now also an NHS Developers Community forum, which in recent years has probably become more of a focus for queries and discussion around NHS APIs. Of course, in this case your query was with an EMIS API, but the link below may be of help for other queries. https://developer.community.nhs.uk/ --- ## Post #4 by @mayfield.g.kev That forum is useful but it tends to be NHS England APIs only and relies on the NHS England team behind the API getting involved. The far wider set of NHS “standard” APIs, messages and event feeds isn’t covered. --- ## Post #5 by @pacharanero Thanks @mayfield.g.kev - do you think OHH is a good place to cover off the other stuff? And if so how do we get the message out there more widely? I guess OHH is one of the few places that a Google search for EMIS APIs is going to get hits of any useful nature, so there might be some organic traffic that way. --- **Canonical:** https://openhealthhub.org/t/emis-partner-api-filerecord-call-creating-linked-snomed-codes/2865 **Original content:** https://openhealthhub.org/t/emis-partner-api-filerecord-call-creating-linked-snomed-codes/2865