HL7 RoleCode missing from our medplum project.
# support
c
Over the weekend it seems like the "Role Code" code system was removed from our medplum project. Is there a way for us to look at the edit history for something that was deleted?
r
Hi @Charlie from Imagine - I'm sorry to hear that. Is this a resource you had created yourself, or a resource that was provided by Medplum?
c
As far as I know, all the HL7 code systems were provided by Medplum
We have our own separate code systems that we manage, but this one is OOB
If there was a delete log somewhere, that could tell us what exactly removed it
r
There might be a bit of nuance here, since these valuesets are medplum server shared resources. I'll work with the team to see if anything changed over the weekend
c
Awesome, thanks Rahul!
r
Hi @Charlie from Imagine - quick check; does this user have an access policy set?
c
My user?
I'm an admin
r
👍 thanks - just checking
c
But let me check if I have an actual policy
No policy
r
Another question - can you point me to a resource that references that ValueSet, that was working before?
c
In this specific case, its a UI
CodingInput
component that uses the valueset search
r
Role Code is one of the Valuesets we autoload into the server. We want to do a sanity check that it used to exist.
I see, and it until this week, that input was populating correctly with options?
c
Yep, as late as Friday
Let me get you an output of that
r
If you could also confirm the version of the react components library you are working with, that would be very helpful
c
From a related person:
Copy code
"relationship": [
    {
      "coding": [
        {
          "code": "FTH",
          "display": "Father",
          "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode"
        }
      ]
    }
  ],
we are on 2.1.12
^for all medplum
mantine stuff is on 6.0.20
r
HI @Charlie from Imagine , we just looked through our logs and didn't see any recent deletes in your project. As another sanity check, do you mind sharing the call you're making to
CodeInput
? I would just like to check the URL string to see if I can see any issues there?
c
Copy code
tsx

        <Input.Wrapper
          placeholder="Please select"
          label="Relationship to patient"
          {...form.getInputProps('contact.relationship')}
        >
          <Input
            binding={HL7System.RoleCode}
            name="outcome"
            component={CodingInput}
            defaultValue={form.values.contact.relationship}
            onChange={(value) => form.setFieldValue('contact.relationship', value)}
          />
        </Input.Wrapper>
Copy code
tsx
export const enum HL7System {
  LivingArrangement = 'http://terminology.hl7.org/CodeSystem/v3-LivingArrangement',
  InterpreterRequired = 'http://hl7.org/fhir/StructureDefinition/patient-interpreterRequired',
  OrganizationType = 'http://terminology.hl7.org/CodeSystem/organization-type',
  CoverageClass = 'http://terminology.hl7.org/CodeSystem/coverage-class',
  RoleCode = 'http://terminology.hl7.org/CodeSystem/v3-RoleCode',
  GenderIdentity = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-genderIdentity',
  PreferredPronoun = 'http://terminology.hl7.org/ValueSet/pronouns',
}