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
stellar4879
01/02/2023, 8:56 PM
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
reshma
01/02/2023, 8:58 PM
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
stellar4879
01/02/2023, 8:59 PM
Thank you Reshma.
a
arscan
01/02/2023, 9:53 PM
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)
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
stellar4879
01/05/2023, 2:05 AM
@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.