Hi <@471012200534769675> - Hm, good question. I ...
# general
c
Hi @brunofonseca5428 - Hm, good question. I suppose we could add one. Currently, there are 2 cases where we create a practitioner in the server. First is part of
createProject()
(which returns a
ProjectMembership
for a new
Practitioner
). Second is
inviteUser()
(which returns a
Practitioner
).
b
I actually read the code before asking. I could use
inviteUser()
but it sends an email to the user directing them to Medplum site (instead of mine). Should I open an issue for the
createPractitioner
?
c
Sure, go for it!
b
I started playing with this, and got stuck when I saw that patients have the
defaultPatientAccesPolicy
. So I have two doubts: 1. Should Practitioners have the same? 2. If so, is there any instruction how to run the generate script to include FHIR types?
About 2, I figured it out. I was editing the wrong file, instead of
packages/definitions/dist/fhir/r4/profiles-medplum.json
@cody I wrote this PR: https://github.com/medplum/medplum/pull/1039 - if you are interested.
c
Thanks Bruno! I'll take a look today.
176 Views