We recommend sticking to the spec as much as possi...
# general
r
We recommend sticking to the spec as much as possible, in this case it looks like the Media resource supports Location as a Subject type. @rahul1 - what do you think?
s
Makes sense, I will dig into the Media type. Brainstorming using Airtable or Prisma or something for richer metadata if the media type doesn't cut it. Using Medplums IDs as foreign keys.
r
Medplum definitely supports Binary files -and images - but the right way to model can require some digging. Rahul is very knowledgable and may have some good advice!
s
Thank you Reshma.
a
From a FHIR perspective, I’d think having an extension on Organization that stores the logo as a URL or data-url would make the most sense. This draft guide does it that way (search for ‘brand-logo’): https://hackmd.io/@argonaut/patient-access-brands (just as an example of a use case that needed to attach a logo to an organization, I don’t know if the rest is at all relevant to you)
r
Hi @stellar4879 - yep I agree with Reshma that the Media resource is the best for representing images. We actually have some docs on how to upload a Media resource from a URL: https://www.medplum.com/docs/fhir-datastore/uploading-files-to-medplum
There isn't a built-in way of representing logos in FHIR, as @arscan mentioned. I think an extension would be the right way to go. I think an extension which references a Media resource would help keep all your Binaries in one place
s
@rahul1 @ @arscan thank you for the pointer. I will RTM. Apologies as I was looking primarily at the app.medplum interface to do some manual entry of existing orgs. Thank you.
178 Views