-
-
Notifications
You must be signed in to change notification settings - Fork 40
/
config.php
75 lines (68 loc) · 3.1 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?php declare(strict_types=1);
/**
* Generator default configuration file
*
* Copyright 2017 Pim Koeman ([email protected])
* Copyright 2017-2024 Daniel Carbone ([email protected])
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
return [
// The path to look look for and optionally download source XSD files to
'schemaPath' => __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'input/',
// The path to place generated type class files
'classesPath' => __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'output/',
// If true, will use a noop null logger
'silent' => false,
// If true, will skip generation of test classes
'skipTests' => false,
// If you wish to specify alternative libxml opts, do so here.
'libxmlOpts' => LIBXML_NONET | LIBXML_BIGLINES | LIBXML_PARSEHUGE | LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD | LIBXML_NOXMLDECL,
// Map of versions and configurations to generate
// Each entry in this map will grab the latest revision of that particular version. If you wish to use a specific
// version, please see https://www.hl7.org/fhir/directory.html
'versions' => [
'DSTU1' => [
// Source URL
'url' => 'https://hl7.org/fhir/DSTU1/fhir-all-xsd.zip',
// Namespace to prefix the generated classes with
'namespace' => '\\HL7\\FHIR\\DSTU1',
// if defined, enables integration and validation test generation against the provided endpoint.
'testEndpoint' => '',
],
'DSTU2' => [
'url' => 'https://hl7.org/fhir/DSTU2/fhir-all-xsd.zip',
'namespace' => '\\HL7\\FHIR\\DSTU2',
'testEndpoint' => 'https://hapi.fhir.org/baseDstu2',
],
'STU3' => [
'url' => 'https://hl7.org/fhir/STU3/fhir-all-xsd.zip',
'namespace' => '\\HL7\\FHIR\\STU3',
'testEndpoint' => 'https://hapi.fhir.org/baseDstu3',
],
'R4' => [
'url' => 'https://hl7.org/fhir/R4/fhir-all-xsd.zip',
'namespace' => '\\HL7\\FHIR\\R4',
'testEndpoint' => 'https://hapi.fhir.org/baseR4',
],
'R5' => [
'url' => 'https://hl7.org/fhir/R5/fhir-all-xsd.zip',
'namespace' => '\\HL7\\FHIR\\R5',
'testEndpoint' => 'https://hapi.fhir.org/baseR5',
]
// 'Build' => [
// 'url' => 'https://build.fhir.org/fhir-all-xsd.zip',
// 'namespace' => '\\HL7\\FHIR\\Build',
// ],
],
];