jasonwa.ng
01/25/2024, 8:55 PMtest-encounter and I'm applying it to an Encounter, if I modify the StructureDefinition for the profile within Medplum, will it apply any additional validations to all resources that have that profile? If they don't, what happens to the resources when you try to save them again (do they validate against the original version that was applied to them, or against the latest version)? Generally super interested in how the Profile migration process works and what are best practices for that.
2. Related to the above, I see that there is a version for each StructureDefinition, do you have any recommended ways to reference different versions of profiles for different resources?
Generally interested in best practices as we think about applying profiles and migrating resources, if you have recommendations for how to make sure we don't run into extraneous validation errors as we migrate, or otherwise apply data migrations to Medplum resources.rahul1
02/01/2024, 4:45 PMversion field, and then use a version-specific reference in your meta.profile
e.g.
meta.profile = http://my-structure-definition.com|0.1
this uses a "canonical reference" https://hl7.org/fhir/R4/references.html#canonicalrahul1
02/01/2024, 4:48 PM|<version number> reference syntax for profiles yet.
In the meantime, I would suggest manually versioning your structure-definitions as:
meta.profile = http://my-structure-definition.com/version/1
`jasonwa.ng
02/02/2024, 8:37 PM