PractitionerRole

The PractitionerRole resource stores the following types of information:

  • Practitioner Role
  • Requestor Role
  • Delegate Role
  • Designate Role

All of these use the same profile: FlexFormsRole

idΣ0..1string
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
text0..1Narrative
contained0..*Resource
RelatedPractitionerRoleI0..1Extension(Reference(FlexFormsRole | PractitionerRole))
RelatedRequestorRoleI0..1Extension(Reference(FlexFormsRole))
TeamMemberNameI0..1Extension(string)
GeneralConsentI0..1Extension(Reference(TermsOfUseConsent))
TeamMaintenanceConsentI0..1Extension(Reference(TermsOfUseConsent))
modifierExtension?! I0..*Extension
identifierΣ0..0Identifier
activeΣ0..1boolean
periodΣ I0..0Period
practitionerΣ I1..1Reference(FlexFormUser | FlexFormPotentialUser)
organizationΣ I0..1Reference(ProgramArea)
id0..1string
extensionI0..*Extension
id0..1string
extensionI0..*Extension
systemΣ1..1uriFixed Value
versionΣ0..0string
codeΣ1..1codeBinding
displayΣ0..0string
userSelectedΣ0..0boolean
textΣ0..0string
specialtyΣ0..0CodeableConceptBinding
locationΣ I0..*Reference(RequestorLocation)
healthcareServiceI0..0Reference(HealthcareService)
telecomΣ I0..0ContactPoint
availabilityExceptions0..0string
endpointI0..0Reference(Endpoint)


Practitioner Role

This role is only used to store the user's locations.

Requirements

  • Contains the user's addresses
  • Is not related to a specific program area
  • Has a reference to the Practitioner
  • Has a PRACTITIONER code

Example - that passes validation

{
    "resourceType": "PractitionerRole",
    "id": "e96baa62-e018-4693-8d6f-11111111",
    "meta": {
        "versionId": "2",
        "lastUpdated": "2021-09-28T22:49:49.645+00:00",
        "profile":  [
            "https://health.gov.on.ca/sadie/fhir/StructureDefinition/FlexFormsRole"
        ]
    },
    "text": {
        "status": "empty",
        --- We have skipped the narrative for better readability of the resource ---
    },
    "active": true,
    "practitioner": {
        "reference": "Practitioner/caaf54d4-33f9-4deb-ae0b-6cd8d7ca522f"
    },
    "code":  [
        {
            "coding":  [
                {
                    "system": "https://health.gov.on.ca/sadie/fhir/CodeSystem/FlexForms-Internal-Complete",
                    "code": "PRACTITIONER"
                }
            ]
        }
    ],
    "location":  [
        {
            "reference": "Location/e0265b67-1661-4eea-bc52-60e93d88f43b"
        }
    ]
}


Requestor Role

Requirements

  • Has a related PRACTITIONER role that contains their addresses
  • Can have a link to the consent they agreed to when the logged on to the system using this role
  • Is related to a specific program area
  • Has a reference to the Practitioner
  • Has a REQUESTOR code

Example - that passes validation

{
    "resourceType": "PractitionerRole",
    "id": "b1d8e2f5-6e93-47d1-bd9d-22222222",
    "meta": {
        "versionId": "2",
        "lastUpdated": "2021-09-28T22:55:56.449+00:00",
        "source": "#3a1Mtx0z6ClagXr2",
        "profile":  [
            "https://health.gov.on.ca/sadie/fhir/StructureDefinition/FlexFormsRole"
        ]
    },
    "text": {
        "status": "empty",
        --- We have skipped the narrative for better readability of the resource ---
    },
    "extension":  [
        {
            "url": "https://health.gov.on.ca/sadie/fhir/StructureDefinition/RelatedPractitionerRole",
            "valueReference": {
                "reference": "PractitionerRole/e96baa62-e018-4693-8d6f-20f3db7bb1be"
            }
        },
        {
            "url": "https://health.gov.on.ca/sadie/fhir/StructureDefinition/RelatedGeneralConsent",
            "valueReference": {
                "reference": "Consent/840e0240-c43a-4a38-94c4-617b6fc802c0"
            }
        }
    ],
    "active": true,
    "practitioner": {
        "reference": "Practitioner/caaf54d4-33f9-4deb-ae0b-6cd8d7ca522f"
    },
    "organization": {
        "reference": "Organization/eeb8a591-c435-4060-9cc4-464da59c0286"
    },
    "code":  [
        {
            "coding":  [
                {
                    "system": "https://health.gov.on.ca/sadie/fhir/CodeSystem/FlexForms-Internal-Complete",
                    "code": "REQUESTOR"
                }
            ]
        }
    ]
}


Delegate Role

Requirements

  • Has a related PRACTITIONER role
  • Has a related REQUESTOR role
  • Has a team member name
  • Has a link to the consent that was agreed to when this team maintenance record was created/updated
  • Can have a link to the consent they agreed to when the logged on to the system using this role
  • Is related to a specific program area
  • Has a reference to the Practitioner

Example - that passes validation

{
    "resourceType": "PractitionerRole",
    "id": "42d161ef-c628-4eed-92bc-333333",
    "meta": {
        "versionId": "1",
        "lastUpdated": "2021-09-21T20:36:38.936+00:00",
        "source": "#4iwFZQKjtAaEZndH"
    },
    "text": {
        "status": "empty",
        --- We have skipped the narrative for better readability of the resource ---
    },
    "extension":  [
        {
            "url": "https://health.gov.on.ca/sadie/fhir/StructureDefinition/TeamMemberName",
            "valueString": "sadie seven"
        },
        {
            "url": "https://health.gov.on.ca/sadie/fhir/StructureDefinition/RelatedPractitionerRole",
            "valueReference": {
                "reference": "PractitionerRole/aa9dd4e0-80fd-4703-8969-3e59d1b2bf1c"
            }
        },
        {
            "url": "https://health.gov.on.ca/sadie/fhir/StructureDefinition/RelatedRequestorRole",
            "valueReference": {
                "reference": "PractitionerRole/ae96ab03-06bf-4b8e-9717-889523d199f1"
            }
        },
        {
            "url": "https://health.gov.on.ca/sadie/fhir/StructureDefinition/RelatedTeamMaintenanceConsent",
            "valueReference": {
                "reference": "Consent/3108a18d-eec8-4fac-8215-ed75856643a9"
            }
        }
    ],
    "active": true,
    "practitioner": {
        "reference": "Practitioner/50e789ad-b308-4b65-9ef7-7be05b8463f9"
    },
    "organization": {
        "reference": "Organization/eeb8a591-c435-4060-9cc4-464da59c0286"
    },
    "code":  [
        {
            "coding":  [
                {
                    "system": "urn:sadie:internalCodeSystem",
                    "code": "DELEGATE"
                }
            ]
        }
    ]
}