Passed
Push — master ( 26e0e4...4a85b9 )
by Peter
10:37
created

Code   A

Complexity

Total Complexity 12

Size/Duplication

Total Lines 1133
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 1049
dl 0
loc 1133
rs 9.404
c 0
b 0
f 0
wmc 12

9 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 2
A LOINC() 0 3 1
B get_profession() 0 1030 2
A Occupation() 0 4 1
A toDOMElement() 0 9 2
A SNOMED() 0 3 1
A ICD10AM() 0 3 1
A getElementTag() 0 3 1
A NCTIS() 0 3 1
1
<?php
2
/**
3
 * The MIT License
4
 *
5
 * Copyright 2016 julien.
6
 *
7
 * Permission is hereby granted, free of charge, to any person obtaining a copy
8
 * of this software and associated documentation files (the "Software"), to deal
9
 * in the Software without restriction, including without limitation the rights
10
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
 * copies of the Software, and to permit persons to whom the Software is
12
 * furnished to do so, subject to the following conditions:
13
 *
14
 * The above copyright notice and this permission notice shall be included in
15
 * all copies or substantial portions of the Software.
16
 *
17
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
 * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE
20
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23
 * THE SOFTWARE.
24
 */
25
26
namespace i3Soft\CDA\Elements;
27
28
use i3Soft\CDA\DataType\Code\CodedValue;
29
use i3Soft\CDA\Interfaces\XSITypeInterface;
30
use i3Soft\CDA\Traits\CodedValueTrait;
31
use i3Soft\CDA\Traits\OriginalTextTrait;
32
use i3Soft\CDA\Traits\TranslationTrait;
33
use i3Soft\CDA\Traits\XSITypeTrait;
34
35
/**
36
 * Description of Code
37
 *
38
 * @author julien
39
 */
40
class Code extends AbstractElement implements XSITypeInterface
41
{
42
    use OriginalTextTrait;
43
    use CodedValueTrait;
44
    use TranslationTrait;
45
    use XSITypeTrait;
46
47
    const OCCUPATION_DISPLAY_NAME = '1220.0 - ANZSCO -- Australian and New Zealand Standard Classification of Occupations, 2013, Version 1.2';
48
    const OCCUPATION_CODE_SYSTEM  = '2.16.840.1.113883.13.62';
49
50
    /**
51
     * Code constructor.
52
     *
53
     * @param CodedValue $codedValue
54
     */
55
    public function __construct($codedValue = null)
56
    {
57
        $this->setXSIType('');
58
        if ($codedValue instanceof CodedValue) {
59
            $this->setCodedValue($codedValue);
60
        }
61
    }
62
63
    /** @noinspection ReturnTypeCanBeDeclaredInspection */
64
65
    /**
66
     * @param string $code
67
     * @param string $displayName
68
     *
69
     * @return self
70
     */
71
    public static function NCTIS(string $code, string $displayName)
72
    {
73
        return new self(new CodedValue($code, $displayName, '1.2.36.1.2001.1001.101', 'NCTIS Data Components'));
74
    }
75
76
    /** @noinspection ReturnTypeCanBeDeclaredInspection */
77
78
    /**
79
     * @param string $code
80
     * @param string $displayName
81
     *
82
     * @return self
83
     */
84
    public static function SNOMED(string $code, string $displayName)
85
    {
86
        return new self(new CodedValue($code, $displayName, '2.16.840.1.113883.6.96', 'SNOMED CT'));
87
    }
88
89
    /** @noinspection ReturnTypeCanBeDeclaredInspection */
90
91
    /**
92
     * @param string $code
93
     * @param string $displayName
94
     *
95
     * @return self
96
     */
97
    public static function LOINC(string $code, string $displayName)
98
    {
99
        return new self(new CodedValue($code, $displayName, '2.16.840.1.113883.6.1', 'LOINC'));
100
    }
101
102
    public static function ICD10AM(string $code, string $displayName)
103
    {
104
        return new self(new CodedValue($code, $displayName, '2.16.840.1.113883.6.135', 'ICD10AM'));
105
    }
106
107
    public static function Occupation(int $code = 0): Code
108
    {
109
        $profession = self::get_profession($code);
110
        return new self(new CodedValue($code, $profession, self::OCCUPATION_CODE_SYSTEM, self::OCCUPATION_DISPLAY_NAME));
111
    }
112
113
    /**
114
     * @param $code
115
     *
116
     * @return string
117
     */
118
    protected static function get_profession($code): string
119
    {
120
        $professions = array(
121
          111111 => 'Chief Executive or Managing Director',
122
          111211 => 'Corporate General Manager',
123
          111212 => 'Defence Force Senior Officer',
124
          111311 => 'Local Government Legislator',
125
          111312 => 'Member of Parliament',
126
          111399 => 'Legislators nec',
127
          121111 => 'Aquaculture Farmer',
128
          121211 => 'Cotton Grower',
129
          121212 => 'Flower Grower',
130
          121213 => 'Fruit or Nut Grower',
131
          121214 => 'Grain, Oilseed or Pasture Grower (Aus)',
132
          121215 => 'Grape Grower',
133
          121216 => 'Mixed Crop Farmer',
134
          121217 => 'Sugar Cane Grower',
135
          121218 => 'Turf Grower',
136
          121221 => 'Vegetable Grower (Aus)',
137
          121299 => 'Crop Farmers nec',
138
          121311 => 'Apiarist',
139
          121312 => 'Beef Cattle Farmer',
140
          121313 => 'Dairy Cattle Farmer',
141
          121314 => 'Deer Farmer',
142
          121315 => 'Goat Farmer',
143
          121316 => 'Horse Breeder',
144
          121317 => 'Mixed Livestock Farmer',
145
          121318 => 'Pig Farmer',
146
          121321 => 'Poultry Farmer',
147
          121322 => 'Sheep Farmer',
148
          121399 => 'Livestock Farmers nec',
149
          121411 => 'Mixed Crop and Livestock Farmer',
150
          131112 => 'Sales and Marketing Manager',
151
          131113 => 'Advertising Manager',
152
          131114 => 'Public Relations Manager',
153
          132111 => 'Corporate Services Manager',
154
          132211 => 'Finance Manager',
155
          132311 => 'Human Resource Manager',
156
          132411 => 'Policy and Planning Manager',
157
          132511 => 'Research and Development Manager',
158
          133111 => 'Construction Project Manager',
159
          133112 => 'Project Builder',
160
          133211 => 'Engineering Manager',
161
          133311 => 'Importer or Exporter',
162
          133312 => 'Wholesaler',
163
          133411 => 'Manufacturer',
164
          133511 => 'Production Manager (Forestry)',
165
          133512 => 'Production Manager (Manufacturing)',
166
          133513 => 'Production Manager (Mining)',
167
          133611 => 'Supply and Distribution Manager',
168
          133612 => 'Procurement Manager',
169
          134111 => 'Child Care Centre Manager',
170
          134211 => 'Medical Administrator (Aus)',
171
          134212 => 'Nursing Clinical Director',
172
          134213 => 'Primary Health Organisation Manager',
173
          134214 => 'Welfare Centre Manager',
174
          134299 => 'Health and Welfare Services Managers nec',
175
          134311 => 'School Principal',
176
          134411 => 'Faculty Head',
177
          134412 => 'Regional Education Manager',
178
          134499 => 'Education Managers nec',
179
          135111 => 'Chief Information Officer',
180
          135112 => 'ICT Project Manager',
181
          135199 => 'ICT Managers nec',
182
          139111 => 'Commissioned Defence Force Officer',
183
          139112 => 'Commissioned Fire Officer',
184
          139113 => 'Commissioned Police Officer',
185
          139211 => 'Senior Non-commissioned Defence Force Member',
186
          139911 => 'Arts Administrator or Manager',
187
          139912 => 'Environmental Manager',
188
          139913 => 'Laboratory Manager',
189
          139914 => 'Quality Assurance Manager',
190
          139915 => 'Sports Administrator',
191
          139999 => 'Specialist Managers nec',
192
          141111 => 'Cafe or Restaurant Manager',
193
          141211 => 'Caravan Park and Camping Ground Manager',
194
          141311 => 'Hotel or Motel Manager',
195
          141411 => 'Licensed Club Manager',
196
          141911 => 'Bed and Breakfast Operator',
197
          141912 => 'Retirement Village Manager',
198
          141999 => 'Accommodation and Hospitality Managers nec',
199
          142111 => 'Retail Manager (General)',
200
          142112 => 'Antique Dealer',
201
          142113 => 'Betting Agency Manager',
202
          142114 => 'Hair or Beauty Salon Manager',
203
          142115 => 'Post Office Manager',
204
          142116 => 'Travel Agency Manager',
205
          149111 => 'Amusement Centre Manager',
206
          149112 => 'Fitness Centre Manager',
207
          149113 => 'Sports Centre Manager',
208
          149211 => 'Call or Contact Centre Manager',
209
          149212 => 'Customer Service Manager',
210
          149311 => 'Conference and Event Organiser',
211
          149411 => 'Fleet Manager',
212
          149412 => 'Railway Station Manager',
213
          149413 => 'Transport Company Manager',
214
          149911 => 'Boarding Kennel or Cattery Operator',
215
          149912 => 'Cinema or Theatre Manager',
216
          149913 => 'Facilities Manager',
217
          149914 => 'Financial Institution Branch Manager',
218
          149915 => 'Equipment Hire Manager',
219
          149999 => 'Hospitality, Retail and Service Managers nec',
220
          211111 => 'Actor',
221
          211112 => 'Dancer or Choreographer',
222
          211113 => 'Entertainer or Variety Artist',
223
          211199 => 'Actors, Dancers and Other Entertainers nec',
224
          211211 => 'Composer',
225
          211212 => 'Music Director',
226
          211213 => 'Musician (Instrumental)',
227
          211214 => 'Singer',
228
          211299 => 'Music Professionals nec',
229
          211311 => 'Photographer',
230
          211411 => 'Painter (Visual Arts)',
231
          211412 => 'Potter or Ceramic Artist',
232
          211413 => 'Sculptor',
233
          211499 => 'Visual Arts and Crafts Professionals nec',
234
          212111 => 'Artistic Director',
235
          212112 => 'Media Producer (excluding Video)',
236
          212113 => 'Radio Presenter',
237
          212114 => 'Television Presenter',
238
          212211 => 'Author',
239
          212212 => 'Book or Script Editor',
240
          212311 => 'Art Director (Film, Television or Stage)',
241
          212312 => 'Director (Film, Television, Radio or Stage)',
242
          212313 => 'Director of Photography',
243
          212314 => 'Film and Video Editor',
244
          212315 => 'Program Director (Television or Radio)',
245
          212316 => 'Stage Manager',
246
          212317 => 'Technical Director',
247
          212318 => 'Video Producer',
248
          212399 => 'Film, Television, Radio and Stage Directors nec',
249
          212411 => 'Copywriter',
250
          212412 => 'Newspaper or Periodical Editor',
251
          212413 => 'Print Journalist',
252
          212414 => 'Radio Journalist',
253
          212415 => 'Technical Writer',
254
          212416 => 'Television Journalist',
255
          212499 => 'Journalists and Other Writers nec',
256
          221111 => 'Accountant (General)',
257
          221112 => 'Management Accountant',
258
          221113 => 'Taxation Accountant',
259
          221211 => 'Company Secretary',
260
          221212 => 'Corporate Treasurer',
261
          221213 => 'External Auditor',
262
          221214 => 'Internal Auditor',
263
          222111 => 'Commodities Trader',
264
          222112 => 'Finance Broker',
265
          222113 => 'Insurance Broker',
266
          222199 => 'Financial Brokers nec',
267
          222211 => 'Financial Market Dealer',
268
          222212 => 'Futures Trader',
269
          222213 => 'Stockbroking Dealer',
270
          222299 => 'Financial Dealers nec',
271
          222311 => 'Financial Investment Adviser',
272
          222312 => 'Financial Investment Manager',
273
          223111 => 'Human Resource Adviser',
274
          223112 => 'Recruitment Consultant',
275
          223113 => 'Workplace Relations Adviser',
276
          223211 => 'ICT Trainer',
277
          223311 => 'Training and Development Professional',
278
          224111 => 'Actuary',
279
          224112 => 'Mathematician',
280
          224113 => 'Statistician',
281
          224211 => 'Archivist',
282
          224212 => 'Gallery or Museum Curator',
283
          224213 => 'Health Information Manager',
284
          224214 => 'Records Manager',
285
          224311 => 'Economist',
286
          224411 => 'Intelligence Officer',
287
          224412 => 'Policy Analyst',
288
          224511 => 'Land Economist',
289
          224512 => 'Valuer',
290
          224611 => 'Librarian',
291
          224711 => 'Management Consultant',
292
          224712 => 'Organisation and Methods Analyst',
293
          224911 => 'Electorate Officer',
294
          224912 => 'Liaison Officer',
295
          224913 => 'Migration Agent (Aus)',
296
          224914 => 'Patents Examiner',
297
          224999 => 'Information and Organisation Professionals nec',
298
          225111 => 'Advertising Specialist',
299
          225112 => 'Market Research Analyst',
300
          225113 => 'Marketing Specialist',
301
          225211 => 'ICT Account Manager',
302
          225212 => 'ICT Business Development Manager',
303
          225213 => 'ICT Sales Representative',
304
          225311 => 'Public Relations Professional',
305
          225411 => 'Sales Representative (Industrial Products)',
306
          225412 => 'Sales Representative (Medical and Pharmaceutical Products)',
307
          225499 => 'Technical Sales Representatives nec',
308
          231111 => 'Aeroplane Pilot',
309
          231112 => 'Air Traffic Controller',
310
          231113 => 'Flying Instructor',
311
          231114 => 'Helicopter Pilot',
312
          231199 => 'Air Transport Professionals nec',
313
          231211 => 'Master Fisher',
314
          231212 => 'Ship\'s Engineer',
315
          231213 => 'Ship\'s Master',
316
          231214 => 'Ship\'s Officer',
317
          231215 => 'Marine Surveyor',
318
          231299 => 'Marine Transport Professionals nec',
319
          232111 => 'Architect',
320
          232112 => 'Landscape Architect',
321
          232212 => 'Surveyor',
322
          232213 => 'Cartographer',
323
          232214 => 'Other Spatial Scientist',
324
          232311 => 'Fashion Designer',
325
          232312 => 'Industrial Designer',
326
          232313 => 'Jewellery Designer',
327
          232411 => 'Graphic Designer',
328
          232412 => 'Illustrator',
329
          232413 => 'Multimedia Designer',
330
          232414 => 'Web Designer',
331
          232511 => 'Interior Designer',
332
          232611 => 'Urban and Regional Planner',
333
          233111 => 'Chemical Engineer',
334
          233112 => 'Materials Engineer',
335
          233211 => 'Civil Engineer',
336
          233212 => 'Geotechnical Engineer',
337
          233213 => 'Quantity Surveyor',
338
          233214 => 'Structural Engineer',
339
          233215 => 'Transport Engineer',
340
          233311 => 'Electrical Engineer',
341
          233411 => 'Electronics Engineer',
342
          233511 => 'Industrial Engineer',
343
          233512 => 'Mechanical Engineer',
344
          233513 => 'Production or Plant Engineer',
345
          233611 => 'Mining Engineer (excluding Petroleum)',
346
          233612 => 'Petroleum Engineer',
347
          233911 => 'Aeronautical Engineer',
348
          233912 => 'Agricultural Engineer',
349
          233913 => 'Biomedical Engineer',
350
          233914 => 'Engineering Technologist',
351
          233915 => 'Environmental Engineer',
352
          233916 => 'Naval Architect (Aus)',
353
          233999 => 'Engineering Professionals nec',
354
          234111 => 'Agricultural Consultant',
355
          234112 => 'Agricultural Scientist',
356
          234113 => 'Forester (Aus)',
357
          234211 => 'Chemist',
358
          234212 => 'Food Technologist',
359
          234213 => 'Wine Maker',
360
          234311 => 'Conservation Officer',
361
          234312 => 'Environmental Consultant',
362
          234313 => 'Environmental Research Scientist',
363
          234314 => 'Park Ranger',
364
          234399 => 'Environmental Scientists nec',
365
          234411 => 'Geologist',
366
          234412 => 'Geophysicist',
367
          234413 => 'Hydrogeologist',
368
          234511 => 'Life Scientist (General)',
369
          234513 => 'Biochemist',
370
          234514 => 'Biotechnologist',
371
          234515 => 'Botanist',
372
          234516 => 'Marine Biologist',
373
          234517 => 'Microbiologist',
374
          234518 => 'Zoologist',
375
          234599 => 'Life Scientists nec',
376
          234611 => 'Medical Laboratory Scientist',
377
          234711 => 'Veterinarian',
378
          234911 => 'Conservator',
379
          234912 => 'Metallurgist',
380
          234913 => 'Meteorologist',
381
          234914 => 'Physicist',
382
          234915 => 'Exercise Physiologist',
383
          234999 => 'Natural and Physical Science Professionals nec',
384
          241111 => 'Early Childhood (Pre-primary School) Teacher',
385
          241112 => 'Kaiako Kohanga Reo (Maori Language Nest Teacher)',
386
          241211 => 'Kaiako Kura Kaupapa Maori (Maori-medium Primary School Teacher)',
387
          241212 => 'Pouako Kura Kaupapa Maori (Maori-medium Primary School Senior Teacher)',
388
          241213 => 'Primary School Teacher',
389
          241311 => 'Middle School Teacher (Aus)',
390
          241411 => 'Secondary School Teacher',
391
          241511 => 'Special Needs Teacher',
392
          241512 => 'Teacher of the Hearing Impaired',
393
          241513 => 'Teacher of the Sight Impaired',
394
          241599 => 'Special Education Teachers nec',
395
          242111 => 'University Lecturer',
396
          242112 => 'University Tutor',
397
          242211 => 'Vocational Education Teacher (Aus)',
398
          249111 => 'Education Adviser',
399
          249112 => 'Education Reviewer',
400
          249211 => 'Art Teacher (Private Tuition)',
401
          249212 => 'Dance Teacher (Private Tuition)',
402
          249213 => 'Drama Teacher (Private Tuition)',
403
          249214 => 'Music Teacher (Private Tuition)',
404
          249299 => 'Private Tutors and Teachers nec',
405
          249311 => 'Teacher of English to Speakers of Other Languages',
406
          251111 => 'Dietitian',
407
          251112 => 'Nutritionist',
408
          251211 => 'Medical Diagnostic Radiographer',
409
          251212 => 'Medical Radiation Therapist',
410
          251213 => 'Nuclear Medicine Technologist',
411
          251214 => 'Sonographer',
412
          251311 => 'Environmental Health Officer',
413
          251312 => 'Occupational Health and Safety Adviser',
414
          251411 => 'Optometrist',
415
          251412 => 'Orthoptist',
416
          251511 => 'Hospital Pharmacist',
417
          251512 => 'Industrial Pharmacist',
418
          251513 => 'Retail Pharmacist',
419
          251911 => 'Health Promotion Officer',
420
          251912 => 'Orthotist or Prosthetist',
421
          251999 => 'Health Diagnostic and Promotion Professionals nec',
422
          252111 => 'Chiropractor',
423
          252112 => 'Osteopath',
424
          252211 => 'Acupuncturist',
425
          252212 => 'Homoeopath',
426
          252213 => 'Naturopath',
427
          252214 => 'Traditional Chinese Medicine Practitioner',
428
          252215 => 'Traditional Maori Health Practitioner',
429
          252299 => 'Complementary Health Therapists nec',
430
          252311 => 'Dental Specialist',
431
          252312 => 'Dentist',
432
          252411 => 'Occupational Therapist',
433
          252511 => 'Physiotherapist',
434
          252611 => 'Podiatrist',
435
          252711 => 'Audiologist',
436
          252712 => 'Speech Pathologist (Aus)',
437
          253111 => 'General Practitioner',
438
          253112 => 'Resident Medical Officer',
439
          253211 => 'Anaesthetist',
440
          253311 => 'Specialist Physician (General Medicine)',
441
          253312 => 'Cardiologist',
442
          253313 => 'Clinical Haematologist',
443
          253314 => 'Medical Oncologist',
444
          253315 => 'Endocrinologist',
445
          253316 => 'Gastroenterologist',
446
          253317 => 'Intensive Care Specialist',
447
          253318 => 'Neurologist',
448
          253321 => 'Paediatrician',
449
          253322 => 'Renal Medicine Specialist',
450
          253323 => 'Rheumatologist',
451
          253324 => 'Thoracic Medicine Specialist',
452
          253399 => 'Specialist Physicians nec',
453
          253411 => 'Psychiatrist',
454
          253511 => 'Surgeon (General)',
455
          253512 => 'Cardiothoracic Surgeon',
456
          253513 => 'Neurosurgeon',
457
          253514 => 'Orthopaedic Surgeon',
458
          253515 => 'Otorhinolaryngologist',
459
          253516 => 'Paediatric Surgeon',
460
          253517 => 'Plastic and Reconstructive Surgeon',
461
          253518 => 'Urologist',
462
          253521 => 'Vascular Surgeon',
463
          253911 => 'Dermatologist',
464
          253912 => 'Emergency Medicine Specialist',
465
          253913 => 'Obstetrician and Gynaecologist',
466
          253914 => 'Ophthalmologist',
467
          253915 => 'Pathologist',
468
          253917 => 'Diagnostic and Interventional Radiologist',
469
          253918 => 'Radiation Oncologist',
470
          253999 => 'Medical Practitioners nec',
471
          254111 => 'Midwife',
472
          254211 => 'Nurse Educator',
473
          254212 => 'Nurse Researcher',
474
          254311 => 'Nurse Manager',
475
          254411 => 'Nurse Practitioner',
476
          254412 => 'Registered Nurse (Aged Care)',
477
          254413 => 'Registered Nurse (Child and Family Health)',
478
          254414 => 'Registered Nurse (Community Health)',
479
          254415 => 'Registered Nurse (Critical Care and Emergency)',
480
          254416 => 'Registered Nurse (Developmental Disability)',
481
          254417 => 'Registered Nurse (Disability and Rehabilitation)',
482
          254418 => 'Registered Nurse (Medical)',
483
          254421 => 'Registered Nurse (Medical Practice)',
484
          254422 => 'Registered Nurse (Mental Health)',
485
          254423 => 'Registered Nurse (Perioperative)',
486
          254424 => 'Registered Nurse (Surgical)',
487
          254425 => 'Registered Nurse (Paediatrics)',
488
          254499 => 'Registered Nurses nec',
489
          261111 => 'ICT Business Analyst',
490
          261112 => 'Systems Analyst',
491
          261211 => 'Multimedia Specialist',
492
          261212 => 'Web Developer',
493
          261311 => 'Analyst Programmer',
494
          261312 => 'Developer Programmer',
495
          261313 => 'Software Engineer',
496
          261314 => 'Software Tester',
497
          261399 => 'Software and Applications Programmers nec',
498
          262111 => 'Database Administrator',
499
          262112 => 'ICT Security Specialist',
500
          262113 => 'Systems Administrator',
501
          263111 => 'Computer Network and Systems Engineer',
502
          263112 => 'Network Administrator',
503
          263113 => 'Network Analyst',
504
          263211 => 'ICT Quality Assurance Engineer',
505
          263212 => 'ICT Support Engineer',
506
          263213 => 'ICT Systems Test Engineer',
507
          263299 => 'ICT Support and Test Engineers nec',
508
          263311 => 'Telecommunications Engineer',
509
          263312 => 'Telecommunications Network Engineer',
510
          271111 => 'Barrister',
511
          271211 => 'Judge',
512
          271212 => 'Magistrate',
513
          271213 => 'Tribunal Member',
514
          271214 => 'Intellectual Property Lawyer',
515
          271299 => 'Judicial and Other Legal Professionals nec',
516
          271311 => 'Solicitor',
517
          272111 => 'Careers Counsellor',
518
          272112 => 'Drug and Alcohol Counsellor',
519
          272113 => 'Family and Marriage Counsellor',
520
          272114 => 'Rehabilitation Counsellor',
521
          272115 => 'Student Counsellor',
522
          272199 => 'Counsellors nec',
523
          272211 => 'Minister of Religion',
524
          272311 => 'Clinical Psychologist',
525
          272312 => 'Educational Psychologist',
526
          272313 => 'Organisational Psychologist',
527
          272314 => 'Psychotherapist',
528
          272399 => 'Psychologists nec',
529
          272411 => 'Historian',
530
          272412 => 'Interpreter',
531
          272413 => 'Translator',
532
          272414 => 'Archaeologist',
533
          272499 => 'Social Professionals nec',
534
          272511 => 'Social Worker',
535
          272611 => 'Community Arts Worker',
536
          272612 => 'Recreation Officer (Aus)',
537
          272613 => 'Welfare Worker',
538
          311111 => 'Agricultural Technician',
539
          311211 => 'Anaesthetic Technician',
540
          311212 => 'Cardiac Technician',
541
          311213 => 'Medical Laboratory Technician',
542
          311214 => 'Operating Theatre Technician',
543
          311215 => 'Pharmacy Technician',
544
          311216 => 'Pathology Collector (Aus)',
545
          311299 => 'Medical Technicians nec',
546
          311311 => 'Fisheries Officer',
547
          311312 => 'Meat Inspector',
548
          311313 => 'Quarantine Officer',
549
          311399 => 'Primary Products Inspectors nec',
550
          311411 => 'Chemistry Technician',
551
          311412 => 'Earth Science Technician',
552
          311413 => 'Life Science Technician',
553
          311414 => 'School Laboratory Technician',
554
          311415 => 'Hydrographer',
555
          311499 => 'Science Technicians nec',
556
          312111 => 'Architectural Draftsperson',
557
          312112 => 'Building Associate',
558
          312113 => 'Building Inspector',
559
          312114 => 'Construction Estimator',
560
          312115 => 'Plumbing Inspector',
561
          312116 => 'Surveying or Spatial Science Technician',
562
          312199 => 'Architectural, Building and Surveying Technicians nec',
563
          312211 => 'Civil Engineering Draftsperson',
564
          312212 => 'Civil Engineering Technician',
565
          312311 => 'Electrical Engineering Draftsperson',
566
          312312 => 'Electrical Engineering Technician',
567
          312411 => 'Electronic Engineering Draftsperson',
568
          312412 => 'Electronic Engineering Technician',
569
          312511 => 'Mechanical Engineering Draftsperson',
570
          312512 => 'Mechanical Engineering Technician',
571
          312611 => 'Safety Inspector',
572
          312911 => 'Maintenance Planner',
573
          312912 => 'Metallurgical or Materials Technician',
574
          312913 => 'Mine Deputy',
575
          312999 => 'Building and Engineering Technicians nec',
576
          313111 => 'Hardware Technician',
577
          313112 => 'ICT Customer Support Officer',
578
          313113 => 'Web Administrator',
579
          313199 => 'ICT Support Technicians nec',
580
          313211 => 'Radiocommunications Technician',
581
          313212 => 'Telecommunications Field Engineer',
582
          313213 => 'Telecommunications Network Planner',
583
          313214 => 'Telecommunications Technical Officer or Technologist',
584
          321111 => 'Automotive Electrician',
585
          321211 => 'Motor Mechanic (General)',
586
          321212 => 'Diesel Motor Mechanic',
587
          321213 => 'Motorcycle Mechanic',
588
          321214 => 'Small Engine Mechanic',
589
          322111 => 'Blacksmith',
590
          322112 => 'Electroplater',
591
          322113 => 'Farrier',
592
          322114 => 'Metal Casting Trades Worker',
593
          322115 => 'Metal Polisher',
594
          322211 => 'Sheetmetal Trades Worker',
595
          322311 => 'Metal Fabricator',
596
          322312 => 'Pressure Welder',
597
          322313 => 'Welder (First Class) (Aus)',
598
          323111 => 'Aircraft Maintenance Engineer (Avionics)',
599
          323112 => 'Aircraft Maintenance Engineer (Mechanical)',
600
          323113 => 'Aircraft Maintenance Engineer (Structures)',
601
          323211 => 'Fitter (General)',
602
          323212 => 'Fitter and Turner',
603
          323213 => 'Fitter-Welder',
604
          323214 => 'Metal Machinist (First Class)',
605
          323215 => 'Textile, Clothing and Footwear Mechanic',
606
          323299 => 'Metal Fitters and Machinists nec',
607
          323311 => 'Engraver',
608
          323312 => 'Gunsmith',
609
          323313 => 'Locksmith',
610
          323314 => 'Precision Instrument Maker and Repairer',
611
          323315 => 'Saw Doctor',
612
          323316 => 'Watch and Clock Maker and Repairer',
613
          323411 => 'Engineering Patternmaker',
614
          323412 => 'Toolmaker',
615
          324111 => 'Panelbeater',
616
          324211 => 'Vehicle Body Builder',
617
          324212 => 'Vehicle Trimmer',
618
          324311 => 'Vehicle Painter',
619
          331111 => 'Bricklayer',
620
          331112 => 'Stonemason',
621
          331211 => 'Carpenter and Joiner',
622
          331212 => 'Carpenter',
623
          331213 => 'Joiner',
624
          332111 => 'Floor Finisher',
625
          332211 => 'Painting Trades Worker',
626
          333111 => 'Glazier',
627
          333211 => 'Fibrous Plasterer',
628
          333212 => 'Solid Plasterer',
629
          333311 => 'Roof Tiler',
630
          333411 => 'Wall and Floor Tiler',
631
          334111 => 'Plumber (General)',
632
          334112 => 'Airconditioning and Mechanical Services Plumber',
633
          334113 => 'Drainer (Aus)',
634
          334114 => 'Gasfitter',
635
          334115 => 'Roof Plumber',
636
          341111 => 'Electrician (General)',
637
          341112 => 'Electrician (Special Class)',
638
          341113 => 'Lift Mechanic',
639
          342111 => 'Airconditioning and Refrigeration Mechanic',
640
          342211 => 'Electrical Linesworker (Aus)',
641
          342212 => 'Technical Cable Jointer',
642
          342311 => 'Business Machine Mechanic',
643
          342312 => 'Communications Operator',
644
          342313 => 'Electronic Equipment Trades Worker',
645
          342314 => 'Electronic Instrument Trades Worker (General)',
646
          342315 => 'Electronic Instrument Trades Worker (Special Class)',
647
          342411 => 'Cabler (Data and Telecommunications)',
648
          342412 => 'Telecommunications Cable Jointer',
649
          342413 => 'Telecommunications Linesworker (Aus)',
650
          342414 => 'Telecommunications Technician',
651
          351111 => 'Baker',
652
          351112 => 'Pastrycook',
653
          351211 => 'Butcher or Smallgoods Maker',
654
          351311 => 'Chef',
655
          351411 => 'Cook',
656
          361111 => 'Dog Handler or Trainer',
657
          361112 => 'Horse Trainer',
658
          361113 => 'Pet Groomer',
659
          361114 => 'Zookeeper',
660
          361115 => 'Kennel Hand',
661
          361199 => 'Animal Attendants and Trainers nec',
662
          361211 => 'Shearer',
663
          361311 => 'Veterinary Nurse',
664
          362111 => 'Florist',
665
          362211 => 'Gardener (General)',
666
          362212 => 'Arborist',
667
          362213 => 'Landscape Gardener',
668
          362311 => 'Greenkeeper',
669
          362411 => 'Nurseryperson',
670
          391111 => 'Hairdresser',
671
          392111 => 'Print Finisher',
672
          392112 => 'Screen Printer',
673
          392211 => 'Graphic Pre-press Trades Worker',
674
          392311 => 'Printing Machinist',
675
          392312 => 'Small Offset Printer',
676
          393111 => 'Canvas Goods Fabricator',
677
          393112 => 'Leather Goods Maker',
678
          393113 => 'Sail Maker',
679
          393114 => 'Shoemaker',
680
          393211 => 'Apparel Cutter',
681
          393212 => 'Clothing Patternmaker',
682
          393213 => 'Dressmaker or Tailor',
683
          393299 => 'Clothing Trades Workers nec',
684
          393311 => 'Upholsterer',
685
          394111 => 'Cabinetmaker',
686
          394211 => 'Furniture Finisher',
687
          394212 => 'Picture Framer',
688
          394213 => 'Wood Machinist',
689
          394214 => 'Wood Turner',
690
          394299 => 'Wood Machinists and Other Wood Trades Workers nec',
691
          399111 => 'Boat Builder and Repairer',
692
          399112 => 'Shipwright',
693
          399211 => 'Chemical Plant Operator',
694
          399212 => 'Gas or Petroleum Operator',
695
          399213 => 'Power Generation Plant Operator',
696
          399311 => 'Gallery or Museum Technician',
697
          399312 => 'Library Technician',
698
          399411 => 'Jeweller',
699
          399511 => 'Broadcast Transmitter Operator',
700
          399512 => 'Camera Operator (Film, Television or Video)',
701
          399513 => 'Light Technician',
702
          399514 => 'Make Up Artist',
703
          399515 => 'Musical Instrument Maker or Repairer',
704
          399516 => 'Sound Technician',
705
          399517 => 'Television Equipment Operator',
706
          399599 => 'Performing Arts Technicians nec',
707
          399611 => 'Signwriter',
708
          399911 => 'Diver',
709
          399912 => 'Interior Decorator',
710
          399913 => 'Optical Dispenser (Aus)',
711
          399914 => 'Optical Mechanic',
712
          399915 => 'Photographer\'s Assistant',
713
          399916 => 'Plastics Technician',
714
          399917 => 'Wool Classer',
715
          399918 => 'Fire Protection Equipment Technician',
716
          399999 => 'Technicians and Trades Workers nec',
717
          411111 => 'Ambulance Officer',
718
          411112 => 'Intensive Care Ambulance Paramedic (Aus)',
719
          411211 => 'Dental Hygienist',
720
          411212 => 'Dental Prosthetist',
721
          411213 => 'Dental Technician',
722
          411214 => 'Dental Therapist',
723
          411311 => 'Diversional Therapist',
724
          411411 => 'Enrolled Nurse',
725
          411412 => 'Mothercraft Nurse',
726
          411511 => 'Aboriginal and Torres Strait Islander Health Worker',
727
          411512 => 'Kaiawhina (Hauora) (Maori Health Assistant)',
728
          411611 => 'Massage Therapist',
729
          411711 => 'Community Worker',
730
          411712 => 'Disabilities Services Officer',
731
          411713 => 'Family Support Worker',
732
          411714 => 'Parole or Probation Officer',
733
          411715 => 'Residential Care Officer',
734
          411716 => 'Youth Worker',
735
          421111 => 'Child Care Worker',
736
          421112 => 'Family Day Care Worker',
737
          421113 => 'Nanny',
738
          421114 => 'Out of School Hours Care Worker',
739
          422111 => 'Aboriginal and Torres Strait Islander Education Worker',
740
          422112 => 'Integration Aide',
741
          422113 => 'Kaiawhina Kohanga Reo (Maori Language Nest Assistant)',
742
          422114 => 'Kaiawhina Kura Kaupapa Maori (Maori-medium School Assistant)',
743
          422115 => 'Preschool Aide',
744
          422116 => 'Teachers\' Aide',
745
          423111 => 'Aged or Disabled Carer',
746
          423211 => 'Dental Assistant',
747
          423311 => 'Hospital Orderly',
748
          423312 => 'Nursing Support Worker',
749
          423313 => 'Personal Care Assistant',
750
          423314 => 'Therapy Aide',
751
          423411 => 'Child or Youth Residential Care Assistant',
752
          423412 => 'Hostel Parent',
753
          423413 => 'Refuge Worker',
754
          431111 => 'Bar Attendant',
755
          431112 => 'Barista',
756
          431211 => 'Cafe Worker',
757
          431311 => 'Gaming Worker',
758
          431411 => 'Hotel Service Manager',
759
          431511 => 'Waiter',
760
          431911 => 'Bar Useful or Busser',
761
          431912 => 'Doorperson or Luggage Porter',
762
          431999 => 'Hospitality Workers nec',
763
          441111 => 'Defence Force Member - Other Ranks',
764
          441211 => 'Emergency Service Worker',
765
          441212 => 'Fire Fighter',
766
          441311 => 'Detective',
767
          441312 => 'Police Officer',
768
          442111 => 'Prison Officer',
769
          442211 => 'Alarm, Security or Surveillance Monitor',
770
          442212 => 'Armoured Car Escort',
771
          442213 => 'Crowd Controller',
772
          442214 => 'Private Investigator',
773
          442215 => 'Retail Loss Prevention Officer',
774
          442216 => 'Security Consultant',
775
          442217 => 'Security Officer',
776
          442299 => 'Security Officers and Guards nec',
777
          451111 => 'Beauty Therapist',
778
          451211 => 'Driving Instructor',
779
          451311 => 'Funeral Director',
780
          451399 => 'Funeral Workers nec',
781
          451411 => 'Gallery or Museum Guide',
782
          451412 => 'Tour Guide',
783
          451511 => 'Natural Remedy Consultant',
784
          451512 => 'Weight Loss Consultant',
785
          451513 => 'Herbalist (Western)',
786
          451611 => 'Tourist Information Officer',
787
          451612 => 'Travel Consultant',
788
          451711 => 'Flight Attendant',
789
          451799 => 'Travel Attendants nec',
790
          451811 => 'Civil Celebrant',
791
          451812 => 'Hair or Beauty Salon Assistant',
792
          451813 => 'Sex Worker or Escort',
793
          451814 => 'Body Artist',
794
          451815 => 'First Aid Trainer',
795
          451816 => 'Religious Assistant',
796
          451899 => 'Personal Service Workers nec',
797
          452111 => 'Fitness Instructor',
798
          452211 => 'Bungy Jump Master',
799
          452212 => 'Fishing Guide',
800
          452213 => 'Hunting Guide',
801
          452214 => 'Mountain or Glacier Guide',
802
          452215 => 'Outdoor Adventure Instructor',
803
          452216 => 'Trekking Guide',
804
          452217 => 'Whitewater Rafting Guide',
805
          452299 => 'Outdoor Adventure Guides nec',
806
          452311 => 'Diving Instructor (Open Water)',
807
          452312 => 'Gymnastics Coach or Instructor',
808
          452313 => 'Horse Riding Coach or Instructor',
809
          452314 => 'Snowsport Instructor',
810
          452315 => 'Swimming Coach or Instructor',
811
          452316 => 'Tennis Coach',
812
          452317 => 'Other Sports Coach or Instructor',
813
          452318 => 'Dog or Horse Racing Official',
814
          452321 => 'Sports Development Officer',
815
          452322 => 'Sports Umpire',
816
          452323 => 'Other Sports Official',
817
          452411 => 'Footballer',
818
          452412 => 'Golfer',
819
          452413 => 'Jockey',
820
          452414 => 'Lifeguard',
821
          452499 => 'Sportspersons nec',
822
          511111 => 'Contract Administrator',
823
          511112 => 'Program or Project Administrator',
824
          512111 => 'Office Manager',
825
          512211 => 'Health Practice Manager',
826
          512299 => 'Practice Managers nec',
827
          521111 => 'Personal Assistant',
828
          521211 => 'Secretary (General)',
829
          521212 => 'Legal Secretary',
830
          531111 => 'General Clerk',
831
          532111 => 'Data Entry Operator',
832
          532112 => 'Machine Shorthand Reporter',
833
          532113 => 'Word Processing Operator',
834
          541111 => 'Call or Contact Centre Team Leader',
835
          541112 => 'Call or Contact Centre Operator',
836
          541211 => 'Information Officer',
837
          542111 => 'Receptionist (General)',
838
          542112 => 'Admissions Clerk',
839
          542113 => 'Hotel or Motel Receptionist',
840
          542114 => 'Medical Receptionist',
841
          551111 => 'Accounts Clerk',
842
          551112 => 'Cost Clerk',
843
          551211 => 'Bookkeeper',
844
          551311 => 'Payroll Clerk',
845
          552111 => 'Bank Worker',
846
          552211 => 'Credit or Loans Officer (Aus)',
847
          552311 => 'Bookmaker',
848
          552312 => 'Insurance Consultant',
849
          552313 => 'Money Market Clerk',
850
          552314 => 'Statistical Clerk',
851
          561111 => 'Betting Agency Counter Clerk',
852
          561112 => 'Bookmaker\'s Clerk',
853
          561113 => 'Telephone Betting Clerk',
854
          561199 => 'Betting Clerks nec',
855
          561211 => 'Courier',
856
          561212 => 'Postal Delivery Officer',
857
          561311 => 'Filing or Registry Clerk',
858
          561411 => 'Mail Clerk',
859
          561412 => 'Postal Sorting Officer',
860
          561511 => 'Survey Interviewer',
861
          561611 => 'Switchboard Operator',
862
          561911 => 'Classified Advertising Clerk',
863
          561912 => 'Meter Reader',
864
          561913 => 'Parking Inspector',
865
          561999 => 'Clerical and Office Support Workers nec',
866
          591112 => 'Production Clerk',
867
          591113 => 'Purchasing Officer',
868
          591115 => 'Stock Clerk',
869
          591116 => 'Warehouse Administrator',
870
          591117 => 'Order Clerk',
871
          591211 => 'Despatching and Receiving Clerk',
872
          591212 => 'Import-Export Clerk',
873
          599111 => 'Conveyancer',
874
          599112 => 'Legal Executive',
875
          599211 => 'Clerk of Court',
876
          599212 => 'Court Bailiff or Sheriff (Aus)',
877
          599213 => 'Court Orderly (Aus)',
878
          599214 => 'Law Clerk',
879
          599215 => 'Trust Officer',
880
          599311 => 'Debt Collector',
881
          599411 => 'Human Resources Clerk',
882
          599511 => 'Customs Officer',
883
          599512 => 'Immigration Officer',
884
          599513 => 'Motor Vehicle Licence Examiner',
885
          599514 => 'Noxious Weeds and Pest Inspector',
886
          599515 => 'Social Security Assessor',
887
          599516 => 'Taxation Inspector',
888
          599517 => 'Train Examiner',
889
          599518 => 'Transport Operations Inspector',
890
          599521 => 'Water Inspector',
891
          599599 => 'Inspectors and Regulatory Officers nec',
892
          599611 => 'Insurance Investigator',
893
          599612 => 'Insurance Loss Adjuster',
894
          599613 => 'Insurance Risk Surveyor',
895
          599711 => 'Library Assistant',
896
          599912 => 'Production Assistant (Film, Television, Radio or Stage)',
897
          599913 => 'Proof Reader',
898
          599914 => 'Radio Despatcher',
899
          599915 => 'Clinical Coder',
900
          599916 => 'Facilities Administrator',
901
          599999 => 'Clerical and Administrative Workers nec',
902
          611111 => 'Auctioneer',
903
          611112 => 'Stock and Station Agent',
904
          611211 => 'Insurance Agent',
905
          611311 => 'Sales Representative (Building and Plumbing Supplies)',
906
          611312 => 'Sales Representative (Business Services)',
907
          611313 => 'Sales Representative (Motor Vehicle Parts and Accessories)',
908
          611314 => 'Sales Representative (Personal and Household Goods)',
909
          611399 => 'Sales Representatives nec',
910
          612111 => 'Business Broker',
911
          612112 => 'Property Manager',
912
          612113 => 'Real Estate Agency Principal (Aus)',
913
          612114 => 'Real Estate Agent',
914
          612115 => 'Real Estate Representative',
915
          621111 => 'Sales Assistant (General)',
916
          621211 => 'ICT Sales Assistant',
917
          621311 => 'Motor Vehicle or Caravan Salesperson',
918
          621312 => 'Motor Vehicle Parts Interpreter (Aus)',
919
          621411 => 'Pharmacy Sales Assistant',
920
          621511 => 'Retail Supervisor',
921
          621611 => 'Service Station Attendant',
922
          621711 => 'Cash Van Salesperson',
923
          621712 => 'Door-to-door Salesperson',
924
          621713 => 'Street Vendor',
925
          621911 => 'Materials Recycler',
926
          621912 => 'Rental Salesperson',
927
          621999 => 'Sales Assistants and Salespersons nec',
928
          631111 => 'Checkout Operator',
929
          631112 => 'Office Cashier',
930
          639111 => 'Model',
931
          639112 => 'Sales Demonstrator',
932
          639211 => 'Retail Buyer',
933
          639212 => 'Wool Buyer',
934
          639311 => 'Telemarketer',
935
          639411 => 'Ticket Seller',
936
          639412 => 'Transport Conductor',
937
          639511 => 'Visual Merchandiser',
938
          639911 => 'Other Sales Support Worker',
939
          711111 => 'Clay Products Machine Operator',
940
          711112 => 'Concrete Products Machine Operator',
941
          711113 => 'Glass Production Machine Operator',
942
          711114 => 'Stone Processing Machine Operator',
943
          711199 => 'Clay, Concrete, Glass and Stone Processing Machine Operators nec',
944
          711211 => 'Industrial Spraypainter',
945
          711311 => 'Paper Products Machine Operator',
946
          711313 => 'Sawmilling Operator',
947
          711314 => 'Other Wood Processing Machine Operator',
948
          711411 => 'Photographic Developer and Printer',
949
          711511 => 'Plastic Cablemaking Machine Operator',
950
          711512 => 'Plastic Compounding and Reclamation Machine Operator',
951
          711513 => 'Plastics Fabricator or Welder',
952
          711514 => 'Plastics Production Machine Operator (General)',
953
          711515 => 'Reinforced Plastic and Composite Production Worker',
954
          711516 => 'Rubber Production Machine Operator',
955
          711599 => 'Plastics and Rubber Production Machine Operators nec',
956
          711611 => 'Sewing Machinist',
957
          711711 => 'Footwear Production Machine Operator',
958
          711712 => 'Hide and Skin Processing Machine Operator',
959
          711713 => 'Knitting Machine Operator',
960
          711714 => 'Textile Dyeing and Finishing Machine Operator',
961
          711715 => 'Weaving Machine Operator',
962
          711716 => 'Yarn Carding and Spinning Machine Operator',
963
          711799 => 'Textile and Footwear Production Machine Operators nec',
964
          711911 => 'Chemical Production Machine Operator',
965
          711912 => 'Motion Picture Projectionist',
966
          711913 => 'Sand Blaster',
967
          711914 => 'Sterilisation Technician',
968
          711999 => 'Machine Operators nec',
969
          712111 => 'Crane, Hoist or Lift Operator',
970
          712211 => 'Driller',
971
          712212 => 'Miner',
972
          712213 => 'Shot Firer',
973
          712311 => 'Engineering Production Worker',
974
          712911 => 'Boiler or Engine Operator',
975
          712912 => 'Bulk Materials Handling Plant Operator',
976
          712913 => 'Cement Production Plant Operator',
977
          712914 => 'Concrete Batching Plant Operator',
978
          712915 => 'Concrete Pump Operator',
979
          712916 => 'Paper and Pulp Mill Operator',
980
          712917 => 'Railway Signal Operator',
981
          712918 => 'Train Controller',
982
          712921 => 'Waste Water or Water Plant Operator',
983
          712922 => 'Weighbridge Operator',
984
          712999 => 'Stationary Plant Operators nec',
985
          721111 => 'Agricultural and Horticultural Mobile Plant Operator',
986
          721211 => 'Earthmoving Plant Operator (General)',
987
          721212 => 'Backhoe Operator',
988
          721213 => 'Bulldozer Operator',
989
          721214 => 'Excavator Operator',
990
          721215 => 'Grader Operator',
991
          721216 => 'Loader Operator',
992
          721311 => 'Forklift Driver',
993
          721911 => 'Aircraft Baggage Handler and Airline Ground Crew',
994
          721912 => 'Linemarker',
995
          721913 => 'Paving Plant Operator',
996
          721914 => 'Railway Track Plant Operator',
997
          721915 => 'Road Roller Operator',
998
          721916 => 'Streetsweeper Operator',
999
          721999 => 'Mobile Plant Operators nec',
1000
          731111 => 'Chauffeur',
1001
          731112 => 'Taxi Driver',
1002
          731199 => 'Automobile Drivers nec',
1003
          731211 => 'Bus Driver',
1004
          731212 => 'Charter and Tour Bus Driver',
1005
          731213 => 'Passenger Coach Driver',
1006
          731311 => 'Train Driver',
1007
          731312 => 'Tram Driver',
1008
          732111 => 'Delivery Driver',
1009
          733111 => 'Truck Driver (General)',
1010
          733112 => 'Aircraft Refueller',
1011
          733113 => 'Furniture Removalist',
1012
          733114 => 'Tanker Driver',
1013
          733115 => 'Tow Truck Driver',
1014
          741111 => 'Storeperson',
1015
          811111 => 'Car Detailer',
1016
          811211 => 'Commercial Cleaner',
1017
          811311 => 'Domestic Cleaner',
1018
          811411 => 'Commercial Housekeeper',
1019
          811412 => 'Domestic Housekeeper',
1020
          811511 => 'Laundry Worker (General)',
1021
          811512 => 'Drycleaner',
1022
          811513 => 'Ironer or Presser',
1023
          811611 => 'Carpet Cleaner',
1024
          811612 => 'Window Cleaner',
1025
          811699 => 'Cleaners nec',
1026
          821111 => 'Builder\'s Labourer',
1027
          821112 => 'Drainage, Sewerage and Stormwater Labourer',
1028
          821113 => 'Earthmoving Labourer',
1029
          821114 => 'Plumber\'s Assistant',
1030
          821211 => 'Concreter',
1031
          821311 => 'Fencer',
1032
          821411 => 'Building Insulation Installer',
1033
          821412 => 'Home Improvement Installer',
1034
          821511 => 'Paving and Surfacing Labourer',
1035
          821611 => 'Railway Track Worker',
1036
          821711 => 'Construction Rigger',
1037
          821712 => 'Scaffolder',
1038
          821713 => 'Steel Fixer',
1039
          821714 => 'Structural Steel Erector',
1040
          821911 => 'Crane Chaser',
1041
          821912 => 'Driller\'s Assistant',
1042
          821913 => 'Lagger',
1043
          821914 => 'Mining Support Worker',
1044
          821915 => 'Surveyor\'s Assistant',
1045
          831111 => 'Baking Factory Worker',
1046
          831112 => 'Brewery Worker',
1047
          831113 => 'Confectionery Maker',
1048
          831114 => 'Dairy Products Maker',
1049
          831115 => 'Fruit and Vegetable Factory Worker',
1050
          831116 => 'Grain Mill Worker',
1051
          831117 => 'Sugar Mill Worker',
1052
          831118 => 'Winery Cellar Hand',
1053
          831199 => 'Food and Drink Factory Workers nec',
1054
          831211 => 'Meat Boner and Slicer',
1055
          831212 => 'Slaughterer',
1056
          831311 => 'Meat Process Worker',
1057
          831312 => 'Poultry Process Worker',
1058
          831313 => 'Seafood Process Worker',
1059
          832111 => 'Chocolate Packer',
1060
          832112 => 'Container Filler',
1061
          832113 => 'Fruit and Vegetable Packer',
1062
          832114 => 'Meat Packer',
1063
          832115 => 'Seafood Packer',
1064
          832199 => 'Packers nec',
1065
          832211 => 'Product Assembler',
1066
          839111 => 'Metal Engineering Process Worker',
1067
          839211 => 'Plastics Factory Worker',
1068
          839212 => 'Rubber Factory Worker',
1069
          839311 => 'Product Examiner',
1070
          839312 => 'Product Grader',
1071
          839313 => 'Product Tester',
1072
          839411 => 'Paper and Pulp Mill Worker',
1073
          839412 => 'Sawmill or Timber Yard Worker',
1074
          839413 => 'Wood and Wood Products Factory Worker',
1075
          839911 => 'Cement and Concrete Plant Worker',
1076
          839912 => 'Chemical Plant Worker',
1077
          839913 => 'Clay Processing Factory Worker',
1078
          839914 => 'Fabric and Textile Factory Worker',
1079
          839915 => 'Footwear Factory Worker',
1080
          839916 => 'Glass Processing Worker',
1081
          839917 => 'Hide and Skin Processing Worker',
1082
          839918 => 'Recycling Worker',
1083
          839999 => 'Factory Process Workers nec',
1084
          841111 => 'Aquaculture Worker',
1085
          841211 => 'Fruit or Nut Farm Worker',
1086
          841212 => 'Fruit or Nut Picker',
1087
          841213 => 'Grain, Oilseed or Pasture Farm Worker (Aus)',
1088
          841214 => 'Vegetable Farm Worker (Aus)',
1089
          841215 => 'Vegetable Picker',
1090
          841216 => 'Vineyard Worker',
1091
          841217 => 'Mushroom Picker',
1092
          841299 => 'Crop Farm Workers nec',
1093
          841311 => 'Forestry Worker',
1094
          841312 => 'Logging Assistant',
1095
          841313 => 'Tree Faller',
1096
          841411 => 'Garden Labourer',
1097
          841412 => 'Horticultural Nursery Assistant',
1098
          841511 => 'Beef Cattle Farm Worker',
1099
          841512 => 'Dairy Cattle Farm Worker',
1100
          841513 => 'Mixed Livestock Farm Worker',
1101
          841514 => 'Poultry Farm Worker',
1102
          841515 => 'Sheep Farm Worker',
1103
          841516 => 'Stablehand',
1104
          841517 => 'Wool Handler',
1105
          841599 => 'Livestock Farm Workers nec',
1106
          841611 => 'Mixed Crop and Livestock Farm Worker',
1107
          841911 => 'Hunter-Trapper',
1108
          841913 => 'Pest Controller',
1109
          841999 => 'Farm, Forestry and Garden Workers nec',
1110
          851111 => 'Fast Food Cook',
1111
          851211 => 'Pastrycook\'s Assistant',
1112
          851299 => 'Food Trades Assistants nec',
1113
          851311 => 'Kitchenhand',
1114
          891111 => 'Freight Handler (Rail or Road)',
1115
          891112 => 'Truck Driver\'s Offsider',
1116
          891113 => 'Waterside Worker',
1117
          891211 => 'Shelf Filler',
1118
          899111 => 'Caretaker',
1119
          899211 => 'Deck Hand',
1120
          899212 => 'Fishing Hand',
1121
          899311 => 'Handyperson',
1122
          899411 => 'Motor Vehicle Parts and Accessories Fitter (General)',
1123
          899412 => 'Autoglazier',
1124
          899413 => 'Exhaust and Muffler Repairer',
1125
          899414 => 'Radiator Repairer',
1126
          899415 => 'Tyre Fitter',
1127
          899511 => 'Printer\'s Assistant',
1128
          899512 => 'Printing Table Worker',
1129
          899611 => 'Recycling or Rubbish Collector',
1130
          899711 => 'Vending Machine Attendant',
1131
          899911 => 'Bicycle Mechanic',
1132
          899912 => 'Car Park Attendant',
1133
          899913 => 'Crossing Supervisor',
1134
          899914 => 'Electrical or Telecommunications Trades Assistant',
1135
          899915 => 'Leaflet or Newspaper Deliverer',
1136
          899916 => 'Mechanic\'s Assistant',
1137
          899917 => 'Railways Assistant',
1138
          899918 => 'Sign Erector',
1139
          899921 => 'Ticket Collector or Usher',
1140
          899922 => 'Trolley Collector',
1141
          899923 => 'Road Traffic Controller',
1142
          899999 => 'Labourers nec'
1143
        );
1144
        if (array_key_exists($code, $professions)) {
1145
            return $professions[$code];
1146
        }
1147
        throw new \InvalidArgumentException("The code $code is invalid!");
1148
    }
1149
1150
    /**
1151
     * @param \DOMDocument $doc
1152
     *
1153
     * @return \DOMElement
1154
     */
1155
    public function toDOMElement(\DOMDocument $doc): \DOMElement
1156
    {
1157
1158
        $el = $this->hasCodedValue()
1159
          ? $this->createElement($doc, array('codedValue'))
1160
          : $this->createElement($doc);
1161
        $this->renderOriginalText($el, $doc)
1162
          ->renderTranslation($el, $doc);
1163
        return $el;
1164
    }
1165
1166
1167
    /**
1168
     * @return string
1169
     */
1170
    public function getElementTag(): string
1171
    {
1172
        return 'code';
1173
    }
1174
1175
1176
}
1177