post https://sandbox.healthgorilla.com/fhir/R4/PractitionerRole
Creates user of Health Gorilla with roles Doctor, Staff, Nurse, Office Manager, Billing Staff.
HG uses additional attributes to pass initial password and login, it's defined as FHIR Extensions:
https://www.healthgorilla.com/fhir/StructureDefinition/hg-practitioner-login
https://www.healthgorilla.com/fhir/StructureDefinition/hg-practitioner-password
Profile to determine Practitioner with specific attributes is https://healthgorilla.com/fhir/StructureDefinition/hg-practitioner
HG supports following roles:
Example:
- Create Doctor or Staff users
{
"resourceType": "PractitionerRole",
"contained": [
{
"resourceType": "Practitioner",
"id": "1",
"meta": {
"profile": [
"http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner",
"https://healthgorilla.com/fhir/StructureDefinition/hg-practitioner"
]
},
"extension": [
{
"url": "https://www.healthgorilla.com/fhir/R4/StructureDefinition/hg-practitioner-login",
"valueString": "testdocfhir"
},
{
"url": "https://www.healthgorilla.com/fhir/R4/StructureDefinition/hg-practitioner-password",
"valueString": "ChangeMe!"
}
],
"identifier": [
{
"system": "http://hl7.org/fhir/sid/us-npi",
"value": "987654321"
}
],
"active": true,
"name": [
{
"use": "official",
"text": "Doctor 4 FHIR, MD",
"family": "FHIR",
"given": [
"Doctor",
"4"
],
"suffix": [
"MD"
]
}
],
"telecom": [
{
"system": "email",
"value": "[email protected]",
"use": "work"
}
]
}
],
"active": true,
"practitioner": {
"reference": "#1"
},
"code": [
{
"coding": [
{
"system": "https://www.healthgorilla.com/administrative-role",
"code": "provider",
"display": "Provider"
},
{
"system": "http://hl7.org/fhir/practitioner-role",
"code": "doctor",
"display": "Doctor"
}
]
}
]
}
{
"resourceType": "PractitionerRole",
"contained": [
{
"resourceType": "Practitioner",
"id": "1",
"meta": {
"profile": [
"http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner",
"https://healthgorilla.com/fhir/StructureDefinition/hg-practitioner"
]
},
"extension": [
{
"url": "https://www.healthgorilla.com/fhir/R4/StructureDefinition/hg-practitioner-login",
"valueString": "testStaff"
},
{
"url": "https://www.healthgorilla.com/fhir/R4/StructureDefinition/hg-practitioner-password",
"valueString": "ChangeMe!"
}
],
"active": true,
"name": [
{
"use": "official",
"text": "Staff FHIR",
"family": "FHIR",
"given": [
"Staff"
]
}
],
"telecom": [
{
"system": "email",
"value": "[email protected]",
"use": "work"
}
]
}
],
"active": true,
"practitioner": {
"reference": "#1"
},
"code": [
{
"coding": [
{
"system": "https://www.healthgorilla.com/administrative-role",
"code": "officeManager",
"display": "Office Manager"
},
{
"system": "http://hl7.org/fhir/practitioner-role",
"code": "staff",
"display": "Staff"
}
]
}
]
}