Skip to content

Commit dad3602

Browse files
committed
Added additional GSS code data
1 parent 89a0cdb commit dad3602

File tree

3 files changed

+9135
-1
lines changed

3 files changed

+9135
-1
lines changed

bin/raw_code_parsing.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,15 @@ var createCsvStream = function (file) {
4646
if (index === 0 && skipFirstLine) {
4747
return null;
4848
}
49+
console.log(row[nameIndex])
4950
output[row[codeIndex]] = row[nameIndex];
5051
return row;
5152
}
5253

5354
return function (callback) {
5455
stream = csv()
5556
.from
56-
.stream(fs.createReadStream(file), {
57+
.stream(fs.createReadStream(file, { encoding: 'utf-8' }), {
5758
delimiter: delimiter
5859
})
5960
.transform(transform)

data/ccgs.json

+2
Original file line numberDiff line numberDiff line change
@@ -35678,6 +35678,7 @@
3567835678
"E38000034":"NHS Chorley and South Ribble",
3567935679
"E38000035":"NHS City and Hackney",
3568035680
"E38000036":"NHS Coastal West Sussex",
35681+
"E38000213":"NHS Coastal West Sussex",
3568135682
"E38000037":"NHS Corby",
3568235683
"E38000038":"NHS Coventry and Rugby",
3568335684
"E38000039":"NHS Crawley",
@@ -35709,6 +35710,7 @@
3570935710
"E38000065":"NHS Greater Preston",
3571035711
"E38000066":"NHS Greenwich",
3571135712
"E38000067":"NHS Guildford and Waverley",
35713+
"E38000214":"NHS Guildford and Waverley",
3571235714
"E38000068":"NHS Halton",
3571335715
"E38000069":"NHS Hambleton, Richmondshire and Whitby",
3571435716
"E38000070":"NHS Hammersmith and Fulham",

0 commit comments

Comments
 (0)