Public/Get-CdrPractitioners.ps1

function Get-CdrPractitioners {
    $iamAuthenticate = Invoke-IamAuthenticate
    $fhirUrl = "$((Get-SfConfig).phecc__FHIRURL__c)/Practitioner?_count=10000&_sort:desc=_lastUpdated"
    $headers = @{
        "Connection"="keep-alive"
        "api-version"="2"
        "Authorization"="Bearer $($iamAuthenticate.access_token)"
        "Content-Type"="application/x-www-form-urlencoded; charset=UTF-8"
    }
    (Invoke-RestMethod -Uri $fhirUrl -Method Get -Headers $headers).entry | Select-Object -expand resource
}