Description Usage Arguments Value Notes See Also Examples
View source: R/OrgRelLkp_NHSTrust.R
Generates an organisational lookup table from the NHS Digital ODS ORD API based on organisational relationship data.
1 2 3 4 5 6 7 8 9 | OrgRelLkpNHSTrust(
PrimaryRole,
NonPrimaryRole = "All",
RelTypes = "None",
RelPrimaryRoles = "None",
OpLegal,
FromDate,
Useproxy = FALSE
)
|
PrimaryRole |
The Primary Role code for organisations to be included in the lookup; quoted string, no default |
NonPrimaryRole |
The Non Primary Role code for organisations to be included in the lookup, or 'All' to include all Non Primary Role Codes; quoted string, default = "All" |
RelTypes |
The Named Relationship Types for related organisations to be included in the lookup, or 'None' to exclude Relationships from output; character vector, default = "None" |
RelPrimaryRoles |
The Primary Role Ids for related organisations to be included in the lookup, or 'None' to exclude relationships from output; character vector, default = "None" |
FromDate |
The effective date from which to include Organisations operational/legal on or after; character string in the format "yyyy-mm-dd", no default |
returns a data.frame of Organisation codes, names, start dates and end dates plus the start and end dates that the organisation was in the specified role and related organisation codes & names and associated start and end dates for the relationship.
This function is experimental and has only been thoroughly QAd for use with the arguments
presented in the example code in order to generate NHS Trust to NHS Regional local Office Lookup Tables.
View the NHS Digital ODS API Implementation Guide at
https://developer.nhs.uk/library/identifiers/ods-ord-api-implementation-guide/
View the NHS Digital ODS API Suite at https://directory.spineservices.nhs.uk/ODSAPISuite
Other odsR package functions:
OrgRelLkpGP()
,
addorgname()
,
getODSfull()
,
getODS()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # return basic NHS Trust lookup without relationships to other organisation types
## Not run:
#' OrgRelLkpNHSTrust(PrimaryRole = "RO197",FromDate="2013-04-01")
## End(Not run)
# return NHS Trust to NHS Regional Local Office Lookup to include all organisations effective on or after 01-04-2013
## Not run:
OrgRelLkpNHSTrust(PrimaryRole = "RO197",
NonPrimaryRole = "All",
RelTypes = "RE5",
RelPrimaryRoles = "RO210",
FromDate = "2013-04-01")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.