Browse Source

Update import raketask to use provided csv

looking into it I couldn't see a use for skip_group_member_validation. it temporarily disables validation but since it's not saved to database it'll make the organisation invalid in the future

opted instead to make all properties valid when importing
Samuel 5 days ago
parent
commit
af197980c2
  1. 3
      app/models/organisation.rb
  2. 898
      config/csv/organisations_structure/20250515_organisation_profit_status_and_group.csv
  3. 20
      lib/tasks/update_organisations_group_profit_status.rake

3
app/models/organisation.rb

@ -63,7 +63,6 @@ class Organisation < ApplicationRecord
enum :profit_status, PROFIT_STATUS
attribute :group_member, :boolean
attr_accessor :skip_group_member_validation
before_save :clear_group_member_fields_if_not_group_member
@ -72,7 +71,7 @@ class Organisation < ApplicationRecord
validates :name, presence: { message: I18n.t("validations.organisation.name_missing") }
validates :name, uniqueness: { case_sensitive: false, message: I18n.t("validations.organisation.name_not_unique") }
validates :provider_type, presence: { message: I18n.t("validations.organisation.provider_type_missing") }
validates :group_member_id, presence: { message: I18n.t("validations.organisation.group_missing") }, if: -> { group_member? && !skip_group_member_validation }
validates :group_member_id, presence: { message: I18n.t("validations.organisation.group_missing") }, if: -> { group_member? }
validate :validate_profit_status
def self.find_by_id_on_multiple_fields(id)

898
config/csv/organisations_structure/20250515_organisation_profit_status_and_group.csv

@ -0,0 +1,898 @@
id,provider_type,profit_status,group
701,PRP,Non-profit,
950,PRP,Non-profit,
808,PRP,Non-profit,2
952,PRP,Non-profit,2
815,PRP,Non-profit,2
311,PRP,Non-profit,
610,PRP,Non-profit,
743,PRP,Non-profit,
750,PRP,Non-profit,
642,PRP,Profit,
181,PRP,Non-profit,
568,PRP,Non-profit,
954,PRP,Non-profit,
994,PRP,Non-profit,
763,PRP,Non-profit,
878,PRP,Non-profit,
961,PRP,Non-profit,
908,LA,Non-profit,
723,PRP,Non-profit,
198,PRP,Non-profit,
895,PRP,Non-profit,
420,LA,Local authority,
470,PRP,Non-profit,
541,PRP,Non-profit,
479,PRP,Profit,
82,PRP,Non-profit,
857,PRP,Non-profit,
807,PRP,Non-profit,
83,PRP,Non-profit,
39,PRP,Non-profit,
707,PRP,Non-profit,
1006,PRP,Local authority,
765,PRP,Non-profit,
649,PRP,Non-profit,
805,PRP,Non-profit,
960,PRP,Non-profit,
985,PRP,Non-profit,
531,PRP,Non-profit,
84,PRP,Non-profit,
629,PRP,Non-profit,
199,PRP,Non-profit,
273,LA,Local authority,
827,PRP,Profit,
442,LA,Local authority,
409,LA,Local authority,
772,PRP,Non-profit,
314,PRP,Non-profit,
240,PRP,Non-profit,
624,PRP,Non-profit,
918,PRP,Non-profit,4
888,PRP,Non-profit,4
955,PRP,Non-profit,4
907,PRP,Non-profit,
464,PRP,Profit,
468,PRP,Non-profit,
450,LA,Local authority,
790,PRP,Local authority,
874,PRP,Non-profit,
739,PRP,Non-profit,
556,PRP,Non-profit,
923,PRP,Non-profit,
200,PRP,Non-profit,
534,LA,Local authority,
806,LA,Local authority,
668,LA,Local authority,
934,PRP,Non-profit,
85,PRP,Non-profit,
2,PRP,Non-profit,
905,PRP,Non-profit,
524,PRP,Non-profit,
791,PRP,Non-profit,
86,PRP,Non-profit,
201,PRP,Non-profit,
640,PRP,Non-profit,
315,PRP,Non-profit,
323,PRP,Non-profit,
693,LA,Local authority,
496,PRP,Non-profit,
481,PRP,Non-profit,
579,PRP,Non-profit,
322,LA,Local authority,
298,PRP,Local authority,
4,LA,Local authority,
490,PRP,Non-profit,
438,LA,Non-profit,
87,PRP,Non-profit,
88,PRP,Non-profit,
527,LA,Local authority,
877,PRP,Local authority,
818,PRP,Non-profit,
670,PRP,Non-profit,
766,PRP,Non-profit,
639,PRP,Non-profit,
940,PRP,Non-profit,
626,PRP,Non-profit,
460,LA,Local authority,
713,PRP,Non-profit,
89,PRP,Non-profit,
609,PRP,Non-profit,
422,LA,Local authority,
90,PRP,Non-profit,
529,LA,Local authority,
999,PRP,Non-profit,
462,PRP,Non-profit,
914,PRP,Non-profit,
182,PRP,Non-profit,
933,PRP,Non-profit,
241,PRP,Non-profit,5
959,PRP,Non-profit,5
692,PRP,Non-profit,
465,PRP,Non-profit,
518,LA,Local authority,
25,PRP,Non-profit,
34,LA,Local authority,
800,PRP,Local authority,
202,PRP,Non-profit,
544,PRP,Non-profit,
953,PRP,Non-profit,
637,PRP,Non-profit,
461,LA,Local authority,
880,PRP,Local authority,
40,PRP,Non-profit,
401,LA,Local authority,
1015,PRP,Local authority,
429,LA,Local authority,
983,PRP,Non-profit,
652,PRP,Non-profit,
279,LA,Local authority,
275,PRP,Non-profit,
665,PRP,Non-profit,
704,PRP,Non-profit,
734,PRP,Non-profit,
408,LA,Local authority,
854,PRP,Non-profit,
700,PRP,Non-profit,
733,PRP,Non-profit,
870,PRP,Non-profit,
23,PRP,Non-profit,
430,LA,Local authority,
831,PRP,Non-profit,
844,PRP,Non-profit,
302,LA,Local authority,
286,PRP,Non-profit,
41,PRP,Non-profit,
284,LA,Local authority,
493,PRP,Non-profit,
798,LA,Local authority,
335,LA,Local authority,
91,PRP,Non-profit,
661,PRP,Non-profit,
850,PRP,Non-profit,
66,PRP,Non-profit,
31,PRP,Non-profit,
191,PRP,Non-profit,
558,PRP,Non-profit,
511,PRP,Non-profit,
721,LA,Local authority,
307,LA,Local authority,
911,PRP,Non-profit,
454,LA,Local authority,
981,PRP,Non-profit,
319,LA,Local authority,
404,LA,Local authority,
92,LA,Local authority,
659,PRP,Non-profit,
747,PRP,Non-profit,
5,PRP,Non-profit,
316,PRP,Non-profit,
292,LA,Local authority,
42,PRP,Non-profit,
242,PRP,Non-profit,
931,PRP,Non-profit,
759,PRP,Non-profit,
612,PRP,Non-profit,
658,PRP,Profit,
243,PRP,Non-profit,
1007,PRP,Non-profit,
232,PRP,Non-profit,
44,PRP,Non-profit,
43,PRP,Non-profit,
203,PRP,Non-profit,
497,LA,Local authority,
514,PRP,Non-profit,
24,PRP,Non-profit,
204,PRP,Non-profit,
635,PRP,Non-profit,
813,PRP,Non-profit,
865,PRP,Non-profit,
715,PRP,Non-profit,
93,LA,Local authority,
817,PRP,Non-profit,
557,PRP,Non-profit,
746,PRP,Non-profit,
282,PRP,Non-profit,
618,PRP,Non-profit,
663,PRP,Non-profit,
821,PRP,Non-profit,
741,PRP,Non-profit,
403,LA,Local authority,
78,PRP,Non-profit,
415,LA,Local authority,
405,LA,Local authority,
977,PRP,Non-profit,
675,PRP,Non-profit,
525,LA,Local authority,
519,PRP,Non-profit,
94,PRP,Non-profit,
67,PRP,Non-profit,
485,PRP,Non-profit,
930,PRP,Non-profit,
95,PRP,Non-profit,
656,PRP,Local authority,
288,LA,Local authority,
192,LA,Local authority,
96,PRP,Non-profit,
205,PRP,Non-profit,
97,PRP,Non-profit,
413,LA,Local authority,
6,PRP,Non-profit,
760,LA,Local authority,
447,LA,Local authority,
280,LA,Local authority,
300,PRP,Local authority,
317,LA,Local authority,
512,PRP,Non-profit,
98,PRP,Non-profit,
70,PRP,Non-profit,
99,PRP,Non-profit,
29,PRP,Non-profit,
100,PRP,Non-profit,
1004,PRP,Non-profit,
101,PRP,Non-profit,
1011,LA,Local authority,
722,PRP,Non-profit,
559,PRP,Non-profit,
206,PRP,Non-profit,
495,PRP,Non-profit,
207,PRP,Non-profit,
102,LA,Local authority,
912,PRP,Non-profit,
561,PRP,Non-profit,
103,PRP,Non-profit,
644,PRP,Non-profit,
452,LA,Local authority,
608,PRP,Non-profit,
472,PRP,Non-profit,
466,PRP,Non-profit,
208,PRP,Non-profit,
580,PRP,Non-profit,
105,PRP,Non-profit,
835,PRP,Non-profit,
970,LA,Local authority,
276,PRP,Non-profit,
486,PRP,Non-profit,
951,PRP,Non-profit,
1003,PRP,Non-profit,
797,PRP,Non-profit,
548,PRP,Profit,
414,LA,Local authority,
748,PRP,Non-profit,
872,PRP,Non-profit,
777,PRP,Non-profit,
16,PRP,Non-profit,
263,PRP,Non-profit,
245,PRP,Non-profit,
630,PRP,Profit,
515,PRP,Non-profit,3
244,PRP,Non-profit,3
968,PRP,Non-profit,3
634,PRP,Non-profit,
538,PRP,Non-profit,
521,LA,Local authority,
728,PRP,Non-profit,
799,PRP,Non-profit,
246,PRP,Non-profit,
889,PRP,Non-profit,
614,PRP,Non-profit,
893,PRP,Non-profit,
106,PRP,Non-profit,
247,PRP,Non-profit,
424,LA,Local authority,
45,PRP,Non-profit,
209,PRP,Profit,
716,PRP,Non-profit,
657,PRP,Non-profit,
833,PRP,Non-profit,
494,LA,Local authority,
473,PRP,Non-profit,
1012,PRP,Non-profit,
28,PRP,Non-profit,
856,PRP,Non-profit,
572,PRP,Non-profit,
969,PRP,Non-profit,6
643,PRP,Non-profit,
418,LA,Local authority,
210,PRP,Non-profit,
551,PRP,Profit,
564,PRP,Non-profit,
476,PRP,Non-profit,
788,PRP,Non-profit,
46,PRP,Non-profit,
881,PRP,Non-profit,
419,LA,Local authority,
653,PRP,Non-profit,
972,PRP,Non-profit,
814,PRP,Non-profit,
327,LA,Local authority,
502,PRP,Non-profit,
108,PRP,Non-profit,
921,PRP,Non-profit,
957,PRP,Non-profit,
731,PRP,Non-profit,
21,PRP,Profit,
65,PRP,Non-profit,
109,PRP,Non-profit,
47,PRP,Non-profit,
847,PRP,Non-profit,
860,PRP,Non-profit,
265,PRP,Profit,
287,LA,Local authority,
980,PRP,Non-profit,
824,PRP,Non-profit,
546,PRP,Non-profit,
211,PRP,Non-profit,
416,LA,Local authority,
785,PRP,Local authority,
578,PRP,Non-profit,
71,PRP,Non-profit,
48,PRP,Non-profit,
672,PRP,Non-profit,
684,PRP,Non-profit,
650,PRP,Non-profit,
500,PRP,Non-profit,
332,LA,Non-profit,
266,PRP,Non-profit,
702,PRP,Non-profit,
752,PRP,Non-profit,
110,PRP,Non-profit,
694,PRP,Non-profit,
819,PRP,Non-profit,
620,PRP,Non-profit,
1010,PRP,Non-profit,
111,PRP,Non-profit,
853,PRP,Non-profit,7
732,PRP,Non-profit,
112,PRP,Non-profit,
755,PRP,Non-profit,
12,PRP,Non-profit,
655,PRP,Non-profit,
49,PRP,Non-profit,
574,PRP,Non-profit,
113,PRP,Non-profit,
823,PRP,Non-profit,
775,PRP,Non-profit,
706,PRP,Non-profit,
780,PRP,Non-profit,
822,PRP,Non-profit,
264,PRP,Non-profit,
887,PRP,Non-profit,
114,PRP,Non-profit,
115,PRP,Non-profit,
212,PRP,Non-profit,
290,LA,Local authority,
982,PRP,Local authority,
72,PRP,Non-profit,
575,PRP,Non-profit,
778,PRP,Non-profit,
477,PRP,Non-profit,
183,PRP,Non-profit,
767,PRP,Non-profit,
837,PRP,Non-profit,
272,PRP,Non-profit,
248,PRP,Non-profit,
990,PRP,Non-profit,
736,PRP,Non-profit,
988,PRP,Non-profit,
939,PRP,Non-profit,
116,PRP,Non-profit,
1017,PRP,Non-profit,
526,PRP,Non-profit,
214,PRP,Non-profit,
520,LA,Local authority,
117,PRP,Non-profit,
583,PRP,Non-profit,7
118,LA,Local authority,
50,PRP,Non-profit,
709,PRP,Non-profit,
26,PRP,Non-profit,
11,PRP,Non-profit,
781,PRP,Non-profit,
421,LA,Local authority,
119,PRP,Non-profit,
73,PRP,Non-profit,
926,PRP,Non-profit,
51,PRP,Non-profit,
1001,PRP,Non-profit,
848,PRP,Non-profit,
679,PRP,Non-profit,
328,PRP,Non-profit,
428,LA,Local authority,
971,PRP,Local authority,
892,PRP,Non-profit,
553,PRP,Non-profit,
121,PRP,Non-profit,
758,PRP,Non-profit,
1019,PRP,Profit,
735,PRP,Profit,
1020,PRP,Profit,
435,LA,Local authority,
678,PRP,Local authority,
691,PRP,Local authority,
329,LA,Local authority,
836,PRP,Non-profit,
120,PRP,Non-profit,
250,PRP,Non-profit,
14,PRP,Non-profit,
927,LA,Local authority,
74,PRP,Non-profit,
122,PRP,Non-profit,
816,PRP,Non-profit,
184,PRP,Non-profit,
185,PRP,Non-profit,
978,PRP,Non-profit,
52,PRP,Non-profit,
621,PRP,Non-profit,
333,LA,Local authority,
193,LA,Local authority,
308,LA,Local authority,
436,LA,Local authority,
965,LA,Local authority,
310,LA,Local authority,
517,LA,Local authority,
535,LA,Local authority,
123,LA,Local authority,
79,LA,Local authority,
492,LA,Local authority,
859,LA,Local authority,
262,LA,Local authority,
498,LA,Local authority,
633,LA,Local authority,
437,LA,Local authority,
443,LA,Local authority,
124,LA,Local authority,
523,LA,Local authority,
278,LA,Local authority,
309,LA,Local authority,
194,LA,Local authority,
761,PRP,Non-profit,
186,PRP,Non-profit,
811,PRP,Non-profit,
216,PRP,Non-profit,
425,LA,Local authority,
148,PRP,Non-profit,
17,PRP,Non-profit,
942,PRP,Profit,
261,PRP,Non-profit,
251,PRP,Non-profit,
919,LA,Local authority,
289,LA,Local authority,
787,PRP,Non-profit,
631,PRP,Non-profit,
771,PRP,Non-profit,
217,PRP,Non-profit,
68,PRP,Non-profit,
904,PRP,Profit,
126,LA,Local authority,
445,LA,Local authority,
963,PRP,Local authority,
573,PRP,Non-profit,5
127,PRP,Non-profit,
613,PRP,Non-profit,
632,PRP,Non-profit,
730,PRP,Non-profit,
509,LA,Local authority,
417,LA,Local authority,
616,PRP,Non-profit,
997,PRP,Non-profit,
689,LA,Local authority,
862,PRP,Non-profit,
682,PRP,Non-profit,
964,PRP,Non-profit,
681,PRP,Non-profit,
796,PRP,Non-profit,
719,PRP,Non-profit,
505,PRP,Non-profit,
487,PRP,Non-profit,
128,PRP,Non-profit,
932,PRP,Non-profit,
846,PRP,Non-profit,
998,PRP,Non-profit,
129,PRP,Non-profit,
130,PRP,Non-profit,
867,PRP,Non-profit,
407,LA,Local authority,
625,PRP,Non-profit,
131,PRP,Non-profit,
549,PRP,Non-profit,
915,PRP,Non-profit,
132,PRP,Non-profit,
710,PRP,Profit,
439,LA,Local authority,
325,LA,Local authority,
53,PRP,Non-profit,
738,PRP,Non-profit,
727,PRP,Non-profit,
906,PRP,Non-profit,
690,PRP,Non-profit,
469,PRP,Non-profit,
296,LA,Local authority,
793,PRP,Non-profit,
336,LA,Local authority,
218,PRP,Non-profit,
133,LA,Local authority,
973,PRP,Local authority,
885,PRP,Non-profit,
536,LA,Local authority,
80,LA,Local authority,
440,LA,Local authority,
456,LA,Local authority,
789,PRP,Local authority,
297,PRP,Local authority,
677,PRP,Non-profit,
277,PRP,Local authority,
38,PRP,Local authority,
830,PRP,Non-profit,
301,LA,Local authority,
75,PRP,Non-profit,
770,PRP,Non-profit,
686,PRP,Non-profit,
537,LA,Local authority,
533,PRP,Non-profit,
698,PRP,Non-profit,
717,PRP,Non-profit,
69,PRP,Non-profit,
239,PRP,Non-profit,
948,PRP,Non-profit,
444,LA,Local authority,
402,LA,Local authority,
986,PRP,Non-profit,
252,PRP,Non-profit,
253,PRP,Non-profit,
219,PRP,Non-profit,
820,LA,Local authority,
254,PRP,Non-profit,
324,PRP,Non-profit,
845,PRP,Non-profit,
705,PRP,Non-profit,
554,PRP,Non-profit,
255,PRP,Non-profit,
712,PRP,Non-profit,
651,PRP,Non-profit,
699,PRP,Non-profit,
987,PRP,Non-profit,
779,PRP,Non-profit,
886,PRP,Non-profit,
195,LA,Local authority,
869,PRP,Non-profit,
683,PRP,Non-profit,
917,PRP,Non-profit,
688,PRP,Non-profit,
654,PRP,Non-profit,
326,PRP,Non-profit,
555,PRP,Profit,
696,PRP,Non-profit,
782,PRP,Non-profit,
839,PRP,Non-profit,
946,PRP,Profit,
220,PRP,Non-profit,
221,PRP,Non-profit,
1000,PRP,Non-profit,7
222,PRP,Non-profit,
294,PRP,Profit,
863,PRP,Non-profit,
562,PRP,Non-profit,
223,PRP,Local authority,
135,PRP,Non-profit,
669,PRP,Non-profit,
136,PRP,Non-profit,
137,PRP,Non-profit,
611,PRP,Profit,
891,PRP,Profit,
864,PRP,Profit,
989,PRP,Non-profit,1
724,PRP,Non-profit,1
680,PRP,Non-profit,1
187,PRP,Non-profit,
224,PRP,Non-profit,
501,PRP,Non-profit,
499,PRP,Non-profit,
225,PRP,Non-profit,
852,PRP,Non-profit,
913,PRP,Non-profit,
451,LA,Local authority,
20,PRP,Non-profit,
958,PRP,Non-profit,
674,PRP,Profit,
10,PRP,Non-profit,
774,PRP,Non-profit,
54,PRP,Non-profit,
55,PRP,Non-profit,
944,PRP,Non-profit,
627,PRP,Non-profit,
949,PRP,Non-profit,
1005,PRP,Non-profit,
920,PRP,Non-profit,
138,PRP,Non-profit,
139,PRP,Non-profit,
729,PRP,Non-profit,
1018,PRP,Non-profit,
530,LA,Local authority,
1016,PRP,Non-profit,
140,PRP,Non-profit,
426,LA,Local authority,
226,PRP,Non-profit,
812,PRP,Non-profit,
809,PRP,Non-profit,
545,LA,Local authority,
873,PRP,Profit,6
764,PRP,Profit,6
141,PRP,Non-profit,
884,PRP,Non-profit,
142,PRP,Non-profit,
1013,PRP,Non-profit,
330,PRP,Non-profit,
482,PRP,Non-profit,
615,PRP,Non-profit,
227,PRP,Non-profit,
459,LA,Local authority,
305,LA,Local authority,
648,PRP,Local authority,
607,PRP,Non-profit,
803,LA,Local authority,
423,LA,Local authority,
448,LA,Local authority,
507,LA,Local authority,
412,LA,Local authority,
834,PRP,Local authority,
979,PRP,Non-profit,
306,PRP,Non-profit,
563,PRP,Non-profit,
143,PRP,Non-profit,
646,PRP,Non-profit,
695,PRP,Non-profit,
188,PRP,Non-profit,
334,PRP,Profit,
993,PRP,Profit,
30,PRP,Non-profit,
883,PRP,Non-profit,
776,PRP,Non-profit,
619,PRP,Non-profit,
714,PRP,Non-profit,
144,PRP,Non-profit,
196,LA,Local authority,
516,PRP,Non-profit,
664,PRP,Non-profit,
744,PRP,Non-profit,
467,PRP,Non-profit,
189,PRP,Non-profit,
483,PRP,Non-profit,
506,PRP,Non-profit,
996,PRP,Non-profit,
751,LA,Local authority,
567,PRP,Non-profit,
560,PRP,Non-profit,
56,PRP,Non-profit,
299,PRP,Non-profit,
37,LA,Local authority,
36,PRP,Non-profit,
35,PRP,Non-profit,
145,PRP,Non-profit,
754,PRP,Profit,
749,PRP,Profit,
941,PRP,Non-profit,
33,PRP,Non-profit,
331,LA,Local authority,
956,PRP,Non-profit,
27,PRP,Non-profit,
916,PRP,Non-profit,
882,PRP,Non-profit,
992,PRP,Non-profit,
925,PRP,Non-profit,
966,LA,Local authority,
910,PRP,Non-profit,
312,LA,Local authority,
146,LA,Local authority,
478,LA,Local authority,
228,PRP,Non-profit,
453,LA,Local authority,
539,LA,Local authority,
147,PRP,Non-profit,
256,PRP,Non-profit,
976,LA,Local authority,
285,LA,Local authority,
318,PRP,Local authority,
565,PRP,Non-profit,
427,LA,Local authority,
922,PRP,Non-profit,
641,PRP,Non-profit,
455,LA,Local authority,
57,PRP,Non-profit,
938,PRP,Non-profit,
623,PRP,Non-profit,
840,PRP,Non-profit,
257,PRP,Non-profit,
569,PRP,Non-profit,
552,LA,Local authority,
876,PRP,Local authority,
19,PRP,Non-profit,
58,PRP,Non-profit,
841,PRP,Non-profit,
293,PRP,Profit,
433,LA,Local authority,
149,PRP,Non-profit,
150,PRP,Non-profit,
843,PRP,Non-profit,
281,PRP,Non-profit,
991,PRP,Non-profit,
929,PRP,Non-profit,
795,PRP,Non-profit,
742,PRP,Non-profit,
151,PRP,Non-profit,
1002,PRP,Non-profit,
685,PRP,Non-profit,
291,PRP,Non-profit,
152,PRP,Non-profit,
153,LA,Local authority,
463,PRP,Non-profit,
491,LA,Local authority,
532,LA,Local authority,
871,PRP,Local authority,
229,PRP,Non-profit,
666,PRP,Non-profit,
829,PRP,Non-profit,
697,PRP,Non-profit,
936,PRP,Profit,
570,PRP,Local authority,
410,LA,Local authority,
855,PRP,Non-profit,
295,LA,Local authority,
155,PRP,Non-profit,
304,PRP,Non-profit,
156,PRP,Non-profit,
1008,PRP,Non-profit,
875,PRP,Non-profit,
446,LA,Local authority,
879,PRP,Local authority,
786,PRP,Non-profit,4
434,LA,Local authority,
157,PRP,Non-profit,
441,LA,Local authority,
230,PRP,Non-profit,
628,PRP,Non-profit,
828,PRP,Non-profit,
231,PRP,Non-profit,
158,PRP,Non-profit,
489,PRP,Non-profit,
1021,LA,Local authority,
159,PRP,Non-profit,
825,PRP,Non-profit,
708,PRP,Non-profit,
81,LA,Local authority,
671,PRP,Non-profit,
197,PRP,Non-profit,
810,PRP,Non-profit,
962,PRP,Non-profit,
160,PRP,Non-profit,
510,PRP,Non-profit,
22,PRP,Non-profit,
258,PRP,Non-profit,
984,PRP,Non-profit,
622,PRP,Non-profit,
104,PRP,Non-profit,
943,PRP,Non-profit,
638,PRP,Non-profit,
107,PRP,Non-profit,
769,PRP,Non-profit,
660,PRP,Non-profit,
161,PRP,Non-profit,
162,PRP,Non-profit,
1014,PRP,Non-profit,
667,PRP,Non-profit,
673,PRP,Non-profit,
134,PRP,Non-profit,
480,PRP,Non-profit,
896,PRP,Non-profit,
890,PRP,Non-profit,
937,PRP,Non-profit,
995,PRP,Non-profit,
543,PRP,Non-profit,
76,PRP,Non-profit,
794,PRP,Non-profit,
267,PRP,Non-profit,
725,PRP,Non-profit,
59,PRP,Non-profit,
522,PRP,Non-profit,
945,PRP,Non-profit,
163,PRP,Non-profit,
897,PRP,Non-profit,
636,PRP,Non-profit,
475,PRP,Non-profit,
768,LA,Local authority,
645,PRP,Non-profit,
726,PRP,Non-profit,
259,PRP,Non-profit,
547,PRP,Non-profit,
566,PRP,Non-profit,
550,PRP,Non-profit,
861,PRP,Non-profit,
832,PRP,Non-profit,
508,PRP,Non-profit,
233,PRP,Non-profit,
234,PRP,Non-profit,
488,PRP,Non-profit,
773,PRP,Non-profit,
164,PRP,Non-profit,
740,PRP,Non-profit,
804,PRP,Non-profit,
647,PRP,Non-profit,
32,PRP,Non-profit,
851,PRP,Non-profit,
703,PRP,Non-profit,
826,PRP,Non-profit,
577,PRP,Non-profit,
432,LA,Local authority,
571,PRP,Local authority,
909,PRP,Non-profit,
581,PRP,Non-profit,
617,PRP,Non-profit,
504,PRP,Profit,
801,PRP,Non-profit,
935,PRP,Non-profit,
320,PRP,Non-profit,
260,PRP,Non-profit,
9,PRP,Non-profit,
165,PRP,Non-profit,
757,PRP,Non-profit,
166,PRP,Non-profit,
431,LA,Local authority,
235,PRP,Non-profit,
236,PRP,Non-profit,
167,PRP,Non-profit,
237,PRP,Non-profit,
313,LA,Local authority,
838,PRP,Local authority,
457,LA,Local authority,
474,PRP,Non-profit,
60,PRP,Non-profit,
168,PRP,Non-profit,
406,LA,Local authority,
61,PRP,Non-profit,
858,PRP,Non-profit,
484,PRP,Non-profit,
169,LA,Local authority,
967,PRP,Local authority,
274,LA,Local authority,
8,PRP,Non-profit,
792,PRP,Non-profit,
974,LA,Local authority,
62,PRP,Non-profit,
190,PRP,Non-profit,
18,PRP,Non-profit,
77,PRP,Non-profit,
458,LA,Local authority,
975,PRP,Non-profit,
449,LA,Local authority,
411,LA,Local authority,
13,PRP,Non-profit,
171,PRP,Non-profit,
172,LA,Local authority,
283,LA,Local authority,
737,LA,Local authority,
718,PRP,Local authority,
753,PRP,Local authority,
842,PRP,Non-profit,
173,PRP,Non-profit,
174,PRP,Non-profit,
784,PRP,Non-profit,
238,PRP,Non-profit,
720,PRP,Non-profit,
576,PRP,Non-profit,
176,PRP,Non-profit,
1009,PRP,Non-profit,
762,PRP,Non-profit,
125,PRP,Non-profit,
154,PRP,Non-profit,
947,PRP,Non-profit,
177,PRP,Non-profit,
178,PRP,Non-profit,
179,PRP,Non-profit,
180,PRP,Non-profit,
584,PRP,Non-profit,
662,PRP,Non-profit,
849,PRP,Non-profit,
582,PRP,Non-profit,
1022,PRP,Non-profit,
868,PRP,Non-profit,
903,PRP,Profit,
1 id provider_type profit_status group
2 701 PRP Non-profit
3 950 PRP Non-profit
4 808 PRP Non-profit 2
5 952 PRP Non-profit 2
6 815 PRP Non-profit 2
7 311 PRP Non-profit
8 610 PRP Non-profit
9 743 PRP Non-profit
10 750 PRP Non-profit
11 642 PRP Profit
12 181 PRP Non-profit
13 568 PRP Non-profit
14 954 PRP Non-profit
15 994 PRP Non-profit
16 763 PRP Non-profit
17 878 PRP Non-profit
18 961 PRP Non-profit
19 908 LA Non-profit
20 723 PRP Non-profit
21 198 PRP Non-profit
22 895 PRP Non-profit
23 420 LA Local authority
24 470 PRP Non-profit
25 541 PRP Non-profit
26 479 PRP Profit
27 82 PRP Non-profit
28 857 PRP Non-profit
29 807 PRP Non-profit
30 83 PRP Non-profit
31 39 PRP Non-profit
32 707 PRP Non-profit
33 1006 PRP Local authority
34 765 PRP Non-profit
35 649 PRP Non-profit
36 805 PRP Non-profit
37 960 PRP Non-profit
38 985 PRP Non-profit
39 531 PRP Non-profit
40 84 PRP Non-profit
41 629 PRP Non-profit
42 199 PRP Non-profit
43 273 LA Local authority
44 827 PRP Profit
45 442 LA Local authority
46 409 LA Local authority
47 772 PRP Non-profit
48 314 PRP Non-profit
49 240 PRP Non-profit
50 624 PRP Non-profit
51 918 PRP Non-profit 4
52 888 PRP Non-profit 4
53 955 PRP Non-profit 4
54 907 PRP Non-profit
55 464 PRP Profit
56 468 PRP Non-profit
57 450 LA Local authority
58 790 PRP Local authority
59 874 PRP Non-profit
60 739 PRP Non-profit
61 556 PRP Non-profit
62 923 PRP Non-profit
63 200 PRP Non-profit
64 534 LA Local authority
65 806 LA Local authority
66 668 LA Local authority
67 934 PRP Non-profit
68 85 PRP Non-profit
69 2 PRP Non-profit
70 905 PRP Non-profit
71 524 PRP Non-profit
72 791 PRP Non-profit
73 86 PRP Non-profit
74 201 PRP Non-profit
75 640 PRP Non-profit
76 315 PRP Non-profit
77 323 PRP Non-profit
78 693 LA Local authority
79 496 PRP Non-profit
80 481 PRP Non-profit
81 579 PRP Non-profit
82 322 LA Local authority
83 298 PRP Local authority
84 4 LA Local authority
85 490 PRP Non-profit
86 438 LA Non-profit
87 87 PRP Non-profit
88 88 PRP Non-profit
89 527 LA Local authority
90 877 PRP Local authority
91 818 PRP Non-profit
92 670 PRP Non-profit
93 766 PRP Non-profit
94 639 PRP Non-profit
95 940 PRP Non-profit
96 626 PRP Non-profit
97 460 LA Local authority
98 713 PRP Non-profit
99 89 PRP Non-profit
100 609 PRP Non-profit
101 422 LA Local authority
102 90 PRP Non-profit
103 529 LA Local authority
104 999 PRP Non-profit
105 462 PRP Non-profit
106 914 PRP Non-profit
107 182 PRP Non-profit
108 933 PRP Non-profit
109 241 PRP Non-profit 5
110 959 PRP Non-profit 5
111 692 PRP Non-profit
112 465 PRP Non-profit
113 518 LA Local authority
114 25 PRP Non-profit
115 34 LA Local authority
116 800 PRP Local authority
117 202 PRP Non-profit
118 544 PRP Non-profit
119 953 PRP Non-profit
120 637 PRP Non-profit
121 461 LA Local authority
122 880 PRP Local authority
123 40 PRP Non-profit
124 401 LA Local authority
125 1015 PRP Local authority
126 429 LA Local authority
127 983 PRP Non-profit
128 652 PRP Non-profit
129 279 LA Local authority
130 275 PRP Non-profit
131 665 PRP Non-profit
132 704 PRP Non-profit
133 734 PRP Non-profit
134 408 LA Local authority
135 854 PRP Non-profit
136 700 PRP Non-profit
137 733 PRP Non-profit
138 870 PRP Non-profit
139 23 PRP Non-profit
140 430 LA Local authority
141 831 PRP Non-profit
142 844 PRP Non-profit
143 302 LA Local authority
144 286 PRP Non-profit
145 41 PRP Non-profit
146 284 LA Local authority
147 493 PRP Non-profit
148 798 LA Local authority
149 335 LA Local authority
150 91 PRP Non-profit
151 661 PRP Non-profit
152 850 PRP Non-profit
153 66 PRP Non-profit
154 31 PRP Non-profit
155 191 PRP Non-profit
156 558 PRP Non-profit
157 511 PRP Non-profit
158 721 LA Local authority
159 307 LA Local authority
160 911 PRP Non-profit
161 454 LA Local authority
162 981 PRP Non-profit
163 319 LA Local authority
164 404 LA Local authority
165 92 LA Local authority
166 659 PRP Non-profit
167 747 PRP Non-profit
168 5 PRP Non-profit
169 316 PRP Non-profit
170 292 LA Local authority
171 42 PRP Non-profit
172 242 PRP Non-profit
173 931 PRP Non-profit
174 759 PRP Non-profit
175 612 PRP Non-profit
176 658 PRP Profit
177 243 PRP Non-profit
178 1007 PRP Non-profit
179 232 PRP Non-profit
180 44 PRP Non-profit
181 43 PRP Non-profit
182 203 PRP Non-profit
183 497 LA Local authority
184 514 PRP Non-profit
185 24 PRP Non-profit
186 204 PRP Non-profit
187 635 PRP Non-profit
188 813 PRP Non-profit
189 865 PRP Non-profit
190 715 PRP Non-profit
191 93 LA Local authority
192 817 PRP Non-profit
193 557 PRP Non-profit
194 746 PRP Non-profit
195 282 PRP Non-profit
196 618 PRP Non-profit
197 663 PRP Non-profit
198 821 PRP Non-profit
199 741 PRP Non-profit
200 403 LA Local authority
201 78 PRP Non-profit
202 415 LA Local authority
203 405 LA Local authority
204 977 PRP Non-profit
205 675 PRP Non-profit
206 525 LA Local authority
207 519 PRP Non-profit
208 94 PRP Non-profit
209 67 PRP Non-profit
210 485 PRP Non-profit
211 930 PRP Non-profit
212 95 PRP Non-profit
213 656 PRP Local authority
214 288 LA Local authority
215 192 LA Local authority
216 96 PRP Non-profit
217 205 PRP Non-profit
218 97 PRP Non-profit
219 413 LA Local authority
220 6 PRP Non-profit
221 760 LA Local authority
222 447 LA Local authority
223 280 LA Local authority
224 300 PRP Local authority
225 317 LA Local authority
226 512 PRP Non-profit
227 98 PRP Non-profit
228 70 PRP Non-profit
229 99 PRP Non-profit
230 29 PRP Non-profit
231 100 PRP Non-profit
232 1004 PRP Non-profit
233 101 PRP Non-profit
234 1011 LA Local authority
235 722 PRP Non-profit
236 559 PRP Non-profit
237 206 PRP Non-profit
238 495 PRP Non-profit
239 207 PRP Non-profit
240 102 LA Local authority
241 912 PRP Non-profit
242 561 PRP Non-profit
243 103 PRP Non-profit
244 644 PRP Non-profit
245 452 LA Local authority
246 608 PRP Non-profit
247 472 PRP Non-profit
248 466 PRP Non-profit
249 208 PRP Non-profit
250 580 PRP Non-profit
251 105 PRP Non-profit
252 835 PRP Non-profit
253 970 LA Local authority
254 276 PRP Non-profit
255 486 PRP Non-profit
256 951 PRP Non-profit
257 1003 PRP Non-profit
258 797 PRP Non-profit
259 548 PRP Profit
260 414 LA Local authority
261 748 PRP Non-profit
262 872 PRP Non-profit
263 777 PRP Non-profit
264 16 PRP Non-profit
265 263 PRP Non-profit
266 245 PRP Non-profit
267 630 PRP Profit
268 515 PRP Non-profit 3
269 244 PRP Non-profit 3
270 968 PRP Non-profit 3
271 634 PRP Non-profit
272 538 PRP Non-profit
273 521 LA Local authority
274 728 PRP Non-profit
275 799 PRP Non-profit
276 246 PRP Non-profit
277 889 PRP Non-profit
278 614 PRP Non-profit
279 893 PRP Non-profit
280 106 PRP Non-profit
281 247 PRP Non-profit
282 424 LA Local authority
283 45 PRP Non-profit
284 209 PRP Profit
285 716 PRP Non-profit
286 657 PRP Non-profit
287 833 PRP Non-profit
288 494 LA Local authority
289 473 PRP Non-profit
290 1012 PRP Non-profit
291 28 PRP Non-profit
292 856 PRP Non-profit
293 572 PRP Non-profit
294 969 PRP Non-profit 6
295 643 PRP Non-profit
296 418 LA Local authority
297 210 PRP Non-profit
298 551 PRP Profit
299 564 PRP Non-profit
300 476 PRP Non-profit
301 788 PRP Non-profit
302 46 PRP Non-profit
303 881 PRP Non-profit
304 419 LA Local authority
305 653 PRP Non-profit
306 972 PRP Non-profit
307 814 PRP Non-profit
308 327 LA Local authority
309 502 PRP Non-profit
310 108 PRP Non-profit
311 921 PRP Non-profit
312 957 PRP Non-profit
313 731 PRP Non-profit
314 21 PRP Profit
315 65 PRP Non-profit
316 109 PRP Non-profit
317 47 PRP Non-profit
318 847 PRP Non-profit
319 860 PRP Non-profit
320 265 PRP Profit
321 287 LA Local authority
322 980 PRP Non-profit
323 824 PRP Non-profit
324 546 PRP Non-profit
325 211 PRP Non-profit
326 416 LA Local authority
327 785 PRP Local authority
328 578 PRP Non-profit
329 71 PRP Non-profit
330 48 PRP Non-profit
331 672 PRP Non-profit
332 684 PRP Non-profit
333 650 PRP Non-profit
334 500 PRP Non-profit
335 332 LA Non-profit
336 266 PRP Non-profit
337 702 PRP Non-profit
338 752 PRP Non-profit
339 110 PRP Non-profit
340 694 PRP Non-profit
341 819 PRP Non-profit
342 620 PRP Non-profit
343 1010 PRP Non-profit
344 111 PRP Non-profit
345 853 PRP Non-profit 7
346 732 PRP Non-profit
347 112 PRP Non-profit
348 755 PRP Non-profit
349 12 PRP Non-profit
350 655 PRP Non-profit
351 49 PRP Non-profit
352 574 PRP Non-profit
353 113 PRP Non-profit
354 823 PRP Non-profit
355 775 PRP Non-profit
356 706 PRP Non-profit
357 780 PRP Non-profit
358 822 PRP Non-profit
359 264 PRP Non-profit
360 887 PRP Non-profit
361 114 PRP Non-profit
362 115 PRP Non-profit
363 212 PRP Non-profit
364 290 LA Local authority
365 982 PRP Local authority
366 72 PRP Non-profit
367 575 PRP Non-profit
368 778 PRP Non-profit
369 477 PRP Non-profit
370 183 PRP Non-profit
371 767 PRP Non-profit
372 837 PRP Non-profit
373 272 PRP Non-profit
374 248 PRP Non-profit
375 990 PRP Non-profit
376 736 PRP Non-profit
377 988 PRP Non-profit
378 939 PRP Non-profit
379 116 PRP Non-profit
380 1017 PRP Non-profit
381 526 PRP Non-profit
382 214 PRP Non-profit
383 520 LA Local authority
384 117 PRP Non-profit
385 583 PRP Non-profit 7
386 118 LA Local authority
387 50 PRP Non-profit
388 709 PRP Non-profit
389 26 PRP Non-profit
390 11 PRP Non-profit
391 781 PRP Non-profit
392 421 LA Local authority
393 119 PRP Non-profit
394 73 PRP Non-profit
395 926 PRP Non-profit
396 51 PRP Non-profit
397 1001 PRP Non-profit
398 848 PRP Non-profit
399 679 PRP Non-profit
400 328 PRP Non-profit
401 428 LA Local authority
402 971 PRP Local authority
403 892 PRP Non-profit
404 553 PRP Non-profit
405 121 PRP Non-profit
406 758 PRP Non-profit
407 1019 PRP Profit
408 735 PRP Profit
409 1020 PRP Profit
410 435 LA Local authority
411 678 PRP Local authority
412 691 PRP Local authority
413 329 LA Local authority
414 836 PRP Non-profit
415 120 PRP Non-profit
416 250 PRP Non-profit
417 14 PRP Non-profit
418 927 LA Local authority
419 74 PRP Non-profit
420 122 PRP Non-profit
421 816 PRP Non-profit
422 184 PRP Non-profit
423 185 PRP Non-profit
424 978 PRP Non-profit
425 52 PRP Non-profit
426 621 PRP Non-profit
427 333 LA Local authority
428 193 LA Local authority
429 308 LA Local authority
430 436 LA Local authority
431 965 LA Local authority
432 310 LA Local authority
433 517 LA Local authority
434 535 LA Local authority
435 123 LA Local authority
436 79 LA Local authority
437 492 LA Local authority
438 859 LA Local authority
439 262 LA Local authority
440 498 LA Local authority
441 633 LA Local authority
442 437 LA Local authority
443 443 LA Local authority
444 124 LA Local authority
445 523 LA Local authority
446 278 LA Local authority
447 309 LA Local authority
448 194 LA Local authority
449 761 PRP Non-profit
450 186 PRP Non-profit
451 811 PRP Non-profit
452 216 PRP Non-profit
453 425 LA Local authority
454 148 PRP Non-profit
455 17 PRP Non-profit
456 942 PRP Profit
457 261 PRP Non-profit
458 251 PRP Non-profit
459 919 LA Local authority
460 289 LA Local authority
461 787 PRP Non-profit
462 631 PRP Non-profit
463 771 PRP Non-profit
464 217 PRP Non-profit
465 68 PRP Non-profit
466 904 PRP Profit
467 126 LA Local authority
468 445 LA Local authority
469 963 PRP Local authority
470 573 PRP Non-profit 5
471 127 PRP Non-profit
472 613 PRP Non-profit
473 632 PRP Non-profit
474 730 PRP Non-profit
475 509 LA Local authority
476 417 LA Local authority
477 616 PRP Non-profit
478 997 PRP Non-profit
479 689 LA Local authority
480 862 PRP Non-profit
481 682 PRP Non-profit
482 964 PRP Non-profit
483 681 PRP Non-profit
484 796 PRP Non-profit
485 719 PRP Non-profit
486 505 PRP Non-profit
487 487 PRP Non-profit
488 128 PRP Non-profit
489 932 PRP Non-profit
490 846 PRP Non-profit
491 998 PRP Non-profit
492 129 PRP Non-profit
493 130 PRP Non-profit
494 867 PRP Non-profit
495 407 LA Local authority
496 625 PRP Non-profit
497 131 PRP Non-profit
498 549 PRP Non-profit
499 915 PRP Non-profit
500 132 PRP Non-profit
501 710 PRP Profit
502 439 LA Local authority
503 325 LA Local authority
504 53 PRP Non-profit
505 738 PRP Non-profit
506 727 PRP Non-profit
507 906 PRP Non-profit
508 690 PRP Non-profit
509 469 PRP Non-profit
510 296 LA Local authority
511 793 PRP Non-profit
512 336 LA Local authority
513 218 PRP Non-profit
514 133 LA Local authority
515 973 PRP Local authority
516 885 PRP Non-profit
517 536 LA Local authority
518 80 LA Local authority
519 440 LA Local authority
520 456 LA Local authority
521 789 PRP Local authority
522 297 PRP Local authority
523 677 PRP Non-profit
524 277 PRP Local authority
525 38 PRP Local authority
526 830 PRP Non-profit
527 301 LA Local authority
528 75 PRP Non-profit
529 770 PRP Non-profit
530 686 PRP Non-profit
531 537 LA Local authority
532 533 PRP Non-profit
533 698 PRP Non-profit
534 717 PRP Non-profit
535 69 PRP Non-profit
536 239 PRP Non-profit
537 948 PRP Non-profit
538 444 LA Local authority
539 402 LA Local authority
540 986 PRP Non-profit
541 252 PRP Non-profit
542 253 PRP Non-profit
543 219 PRP Non-profit
544 820 LA Local authority
545 254 PRP Non-profit
546 324 PRP Non-profit
547 845 PRP Non-profit
548 705 PRP Non-profit
549 554 PRP Non-profit
550 255 PRP Non-profit
551 712 PRP Non-profit
552 651 PRP Non-profit
553 699 PRP Non-profit
554 987 PRP Non-profit
555 779 PRP Non-profit
556 886 PRP Non-profit
557 195 LA Local authority
558 869 PRP Non-profit
559 683 PRP Non-profit
560 917 PRP Non-profit
561 688 PRP Non-profit
562 654 PRP Non-profit
563 326 PRP Non-profit
564 555 PRP Profit
565 696 PRP Non-profit
566 782 PRP Non-profit
567 839 PRP Non-profit
568 946 PRP Profit
569 220 PRP Non-profit
570 221 PRP Non-profit
571 1000 PRP Non-profit 7
572 222 PRP Non-profit
573 294 PRP Profit
574 863 PRP Non-profit
575 562 PRP Non-profit
576 223 PRP Local authority
577 135 PRP Non-profit
578 669 PRP Non-profit
579 136 PRP Non-profit
580 137 PRP Non-profit
581 611 PRP Profit
582 891 PRP Profit
583 864 PRP Profit
584 989 PRP Non-profit 1
585 724 PRP Non-profit 1
586 680 PRP Non-profit 1
587 187 PRP Non-profit
588 224 PRP Non-profit
589 501 PRP Non-profit
590 499 PRP Non-profit
591 225 PRP Non-profit
592 852 PRP Non-profit
593 913 PRP Non-profit
594 451 LA Local authority
595 20 PRP Non-profit
596 958 PRP Non-profit
597 674 PRP Profit
598 10 PRP Non-profit
599 774 PRP Non-profit
600 54 PRP Non-profit
601 55 PRP Non-profit
602 944 PRP Non-profit
603 627 PRP Non-profit
604 949 PRP Non-profit
605 1005 PRP Non-profit
606 920 PRP Non-profit
607 138 PRP Non-profit
608 139 PRP Non-profit
609 729 PRP Non-profit
610 1018 PRP Non-profit
611 530 LA Local authority
612 1016 PRP Non-profit
613 140 PRP Non-profit
614 426 LA Local authority
615 226 PRP Non-profit
616 812 PRP Non-profit
617 809 PRP Non-profit
618 545 LA Local authority
619 873 PRP Profit 6
620 764 PRP Profit 6
621 141 PRP Non-profit
622 884 PRP Non-profit
623 142 PRP Non-profit
624 1013 PRP Non-profit
625 330 PRP Non-profit
626 482 PRP Non-profit
627 615 PRP Non-profit
628 227 PRP Non-profit
629 459 LA Local authority
630 305 LA Local authority
631 648 PRP Local authority
632 607 PRP Non-profit
633 803 LA Local authority
634 423 LA Local authority
635 448 LA Local authority
636 507 LA Local authority
637 412 LA Local authority
638 834 PRP Local authority
639 979 PRP Non-profit
640 306 PRP Non-profit
641 563 PRP Non-profit
642 143 PRP Non-profit
643 646 PRP Non-profit
644 695 PRP Non-profit
645 188 PRP Non-profit
646 334 PRP Profit
647 993 PRP Profit
648 30 PRP Non-profit
649 883 PRP Non-profit
650 776 PRP Non-profit
651 619 PRP Non-profit
652 714 PRP Non-profit
653 144 PRP Non-profit
654 196 LA Local authority
655 516 PRP Non-profit
656 664 PRP Non-profit
657 744 PRP Non-profit
658 467 PRP Non-profit
659 189 PRP Non-profit
660 483 PRP Non-profit
661 506 PRP Non-profit
662 996 PRP Non-profit
663 751 LA Local authority
664 567 PRP Non-profit
665 560 PRP Non-profit
666 56 PRP Non-profit
667 299 PRP Non-profit
668 37 LA Local authority
669 36 PRP Non-profit
670 35 PRP Non-profit
671 145 PRP Non-profit
672 754 PRP Profit
673 749 PRP Profit
674 941 PRP Non-profit
675 33 PRP Non-profit
676 331 LA Local authority
677 956 PRP Non-profit
678 27 PRP Non-profit
679 916 PRP Non-profit
680 882 PRP Non-profit
681 992 PRP Non-profit
682 925 PRP Non-profit
683 966 LA Local authority
684 910 PRP Non-profit
685 312 LA Local authority
686 146 LA Local authority
687 478 LA Local authority
688 228 PRP Non-profit
689 453 LA Local authority
690 539 LA Local authority
691 147 PRP Non-profit
692 256 PRP Non-profit
693 976 LA Local authority
694 285 LA Local authority
695 318 PRP Local authority
696 565 PRP Non-profit
697 427 LA Local authority
698 922 PRP Non-profit
699 641 PRP Non-profit
700 455 LA Local authority
701 57 PRP Non-profit
702 938 PRP Non-profit
703 623 PRP Non-profit
704 840 PRP Non-profit
705 257 PRP Non-profit
706 569 PRP Non-profit
707 552 LA Local authority
708 876 PRP Local authority
709 19 PRP Non-profit
710 58 PRP Non-profit
711 841 PRP Non-profit
712 293 PRP Profit
713 433 LA Local authority
714 149 PRP Non-profit
715 150 PRP Non-profit
716 843 PRP Non-profit
717 281 PRP Non-profit
718 991 PRP Non-profit
719 929 PRP Non-profit
720 795 PRP Non-profit
721 742 PRP Non-profit
722 151 PRP Non-profit
723 1002 PRP Non-profit
724 685 PRP Non-profit
725 291 PRP Non-profit
726 152 PRP Non-profit
727 153 LA Local authority
728 463 PRP Non-profit
729 491 LA Local authority
730 532 LA Local authority
731 871 PRP Local authority
732 229 PRP Non-profit
733 666 PRP Non-profit
734 829 PRP Non-profit
735 697 PRP Non-profit
736 936 PRP Profit
737 570 PRP Local authority
738 410 LA Local authority
739 855 PRP Non-profit
740 295 LA Local authority
741 155 PRP Non-profit
742 304 PRP Non-profit
743 156 PRP Non-profit
744 1008 PRP Non-profit
745 875 PRP Non-profit
746 446 LA Local authority
747 879 PRP Local authority
748 786 PRP Non-profit 4
749 434 LA Local authority
750 157 PRP Non-profit
751 441 LA Local authority
752 230 PRP Non-profit
753 628 PRP Non-profit
754 828 PRP Non-profit
755 231 PRP Non-profit
756 158 PRP Non-profit
757 489 PRP Non-profit
758 1021 LA Local authority
759 159 PRP Non-profit
760 825 PRP Non-profit
761 708 PRP Non-profit
762 81 LA Local authority
763 671 PRP Non-profit
764 197 PRP Non-profit
765 810 PRP Non-profit
766 962 PRP Non-profit
767 160 PRP Non-profit
768 510 PRP Non-profit
769 22 PRP Non-profit
770 258 PRP Non-profit
771 984 PRP Non-profit
772 622 PRP Non-profit
773 104 PRP Non-profit
774 943 PRP Non-profit
775 638 PRP Non-profit
776 107 PRP Non-profit
777 769 PRP Non-profit
778 660 PRP Non-profit
779 161 PRP Non-profit
780 162 PRP Non-profit
781 1014 PRP Non-profit
782 667 PRP Non-profit
783 673 PRP Non-profit
784 134 PRP Non-profit
785 480 PRP Non-profit
786 896 PRP Non-profit
787 890 PRP Non-profit
788 937 PRP Non-profit
789 995 PRP Non-profit
790 543 PRP Non-profit
791 76 PRP Non-profit
792 794 PRP Non-profit
793 267 PRP Non-profit
794 725 PRP Non-profit
795 59 PRP Non-profit
796 522 PRP Non-profit
797 945 PRP Non-profit
798 163 PRP Non-profit
799 897 PRP Non-profit
800 636 PRP Non-profit
801 475 PRP Non-profit
802 768 LA Local authority
803 645 PRP Non-profit
804 726 PRP Non-profit
805 259 PRP Non-profit
806 547 PRP Non-profit
807 566 PRP Non-profit
808 550 PRP Non-profit
809 861 PRP Non-profit
810 832 PRP Non-profit
811 508 PRP Non-profit
812 233 PRP Non-profit
813 234 PRP Non-profit
814 488 PRP Non-profit
815 773 PRP Non-profit
816 164 PRP Non-profit
817 740 PRP Non-profit
818 804 PRP Non-profit
819 647 PRP Non-profit
820 32 PRP Non-profit
821 851 PRP Non-profit
822 703 PRP Non-profit
823 826 PRP Non-profit
824 577 PRP Non-profit
825 432 LA Local authority
826 571 PRP Local authority
827 909 PRP Non-profit
828 581 PRP Non-profit
829 617 PRP Non-profit
830 504 PRP Profit
831 801 PRP Non-profit
832 935 PRP Non-profit
833 320 PRP Non-profit
834 260 PRP Non-profit
835 9 PRP Non-profit
836 165 PRP Non-profit
837 757 PRP Non-profit
838 166 PRP Non-profit
839 431 LA Local authority
840 235 PRP Non-profit
841 236 PRP Non-profit
842 167 PRP Non-profit
843 237 PRP Non-profit
844 313 LA Local authority
845 838 PRP Local authority
846 457 LA Local authority
847 474 PRP Non-profit
848 60 PRP Non-profit
849 168 PRP Non-profit
850 406 LA Local authority
851 61 PRP Non-profit
852 858 PRP Non-profit
853 484 PRP Non-profit
854 169 LA Local authority
855 967 PRP Local authority
856 274 LA Local authority
857 8 PRP Non-profit
858 792 PRP Non-profit
859 974 LA Local authority
860 62 PRP Non-profit
861 190 PRP Non-profit
862 18 PRP Non-profit
863 77 PRP Non-profit
864 458 LA Local authority
865 975 PRP Non-profit
866 449 LA Local authority
867 411 LA Local authority
868 13 PRP Non-profit
869 171 PRP Non-profit
870 172 LA Local authority
871 283 LA Local authority
872 737 LA Local authority
873 718 PRP Local authority
874 753 PRP Local authority
875 842 PRP Non-profit
876 173 PRP Non-profit
877 174 PRP Non-profit
878 784 PRP Non-profit
879 238 PRP Non-profit
880 720 PRP Non-profit
881 576 PRP Non-profit
882 176 PRP Non-profit
883 1009 PRP Non-profit
884 762 PRP Non-profit
885 125 PRP Non-profit
886 154 PRP Non-profit
887 947 PRP Non-profit
888 177 PRP Non-profit
889 178 PRP Non-profit
890 179 PRP Non-profit
891 180 PRP Non-profit
892 584 PRP Non-profit
893 662 PRP Non-profit
894 849 PRP Non-profit
895 582 PRP Non-profit
896 1022 PRP Non-profit
897 868 PRP Non-profit
898 903 PRP Profit

20
lib/tasks/update_organisations_group_profit_status.rake

@ -12,12 +12,20 @@ namespace :data_update do
CSV.foreach(csv_path, headers: true) do |row|
organisation = Organisation.find_by(id: row["id"].to_i)
if organisation
organisation.skip_group_member_validation = true
organisation.update!(
profit_status: row["profit_status"].to_i,
profit_status: map_profit_status(row["profit_status"]),
)
# not all orgs have a group
if row["group"].present?
organisation.update!(
group_member: true,
group: row["group"].to_i,
# normally set to the ID of the other organisation you picked on the group form
# we can't set that here so we default to its own org ID
group_member_id: organisation.id,
)
end
Rails.logger.info "Updated ORG#{row['id']}"
else
Rails.logger.warn "Organisation with ID #{row['id']} not found"
@ -27,3 +35,11 @@ namespace :data_update do
Rails.logger.info "Organisation update task completed"
end
end
def map_profit_status(profit_status)
return :non_profit if profit_status == "Non-profit"
return :profit if profit_status == "Profit"
return :local_authority if profit_status == "Local authority"
nil
end

Loading…
Cancel
Save