@@ -86,64 +86,36 @@ EndpointPDC <- S7::new_class(
8686)
8787
8888# ' @noRd
89- request_count <- S7 :: new_generic(" request_count" , " x" )
90-
89+ s3_affiliations <- S7 :: new_S3_class(" affiliations" )
9190# ' @noRd
92- request_preview <- S7 :: new_generic(" request_preview" , " x" )
93-
91+ s3_clia <- S7 :: new_S3_class(" clia" )
9492# ' @noRd
95- request_single <- S7 :: new_generic(" request_single" , " x" )
96-
93+ s3_clinicians <- S7 :: new_S3_class(" clinicians" )
9794# ' @noRd
98- request_multi <- S7 :: new_generic(" request_multi" , " x" )
99-
95+ s3_dialysis <- S7 :: new_S3_class(" dialysis" )
10096# ' @noRd
101- execute <- S7 :: new_generic(" execute" , " x" )
102-
97+ s3_facility <- S7 :: new_S3_class(" facility" )
10398# ' @noRd
104- S7 :: method(execute , Endpoint ) <- function (x ) {
105- check_online()
106-
107- if (length(x @ query ) == 0L ) {
108- switch (
109- x @ action ,
110- count = return (report_total(x )),
111- set = return (request_multi(x )),
112- return (request_preview(x ))
113- )
114- }
115-
116- if (x @ pages == 0L || x @ action == " count" ) {
117- report_count(x )
118- return (x @ count )
119- }
120-
121- if (x @ pages == 1L ) {
122- return (request_single(x ))
123- }
124- request_multi(x )
125- }
126-
99+ s3_hospitals <- S7 :: new_S3_class(" hospitals" )
127100# ' @noRd
128- S7 :: method(execute , EndpointCMSList ) <- function (x ) {
129- check_online()
130-
131- if (length(x @ query ) == 0L ) {
132- switch (
133- x @ action ,
134- count = return (report_total(x )),
135- set = return (request_multi(x )),
136- return (request_preview(x ))
137- )
138- }
139-
140- if (x @ pages == 0L || x @ action == " count" ) {
141- report_count(x )
142- return (x @ count )
143- }
144-
145- if (x @ pages < = length(x @ url )) {
146- return (request_single(x ))
147- }
148- request_multi(x )
149- }
101+ s3_hospitals2 <- S7 :: new_S3_class(" hospitals2" )
102+ # ' @noRd
103+ s3_opt_out <- S7 :: new_S3_class(" opt_out" )
104+ # ' @noRd
105+ s3_order_refer <- S7 :: new_S3_class(" order_refer" )
106+ # ' @noRd
107+ s3_owner <- S7 :: new_S3_class(" owner" )
108+ # ' @noRd
109+ s3_pending <- S7 :: new_S3_class(" pending" )
110+ # ' @noRd
111+ s3_providers <- S7 :: new_S3_class(" providers" )
112+ # ' @noRd
113+ s3_quality <- S7 :: new_S3_class(" quality" )
114+ # ' @noRd
115+ s3_reassignments <- S7 :: new_S3_class(" reassignments" )
116+ # ' @noRd
117+ s3_revocations <- S7 :: new_S3_class(" revocations" )
118+ # ' @noRd
119+ s3_transparency <- S7 :: new_S3_class(" transparency" )
120+ # ' @noRd
121+ s3_utilization <- S7 :: new_S3_class(" utilization" )
0 commit comments