Skip to content

Commit 78aacb8

Browse files
committed
feat(helm): Cogstack CE - provision opensearch on install
1 parent fb1a95d commit 78aacb8

5 files changed

Lines changed: 199 additions & 0 deletions

File tree

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"index_patterns": [
3+
"admissions",
4+
"drgcodes",
5+
"emar",
6+
"icustays",
7+
"patients",
8+
"poe"
9+
],
10+
"template": {
11+
"mappings": {
12+
"date_detection": true,
13+
"dynamic_date_formats": [
14+
"yyyy-MM-dd HH:mm:ss",
15+
"yyyy-MM-dd",
16+
"basic_date",
17+
"date_hour",
18+
"date_hour_minute",
19+
"date_hour_minute_second",
20+
"time",
21+
"hour_minute",
22+
"yyyy/MM/dd",
23+
"dd/MM/yyyy",
24+
"dd/MM/yyyy HH:mm",
25+
"date_time",
26+
"t_time",
27+
"date_hour_minute_second_millis",
28+
"basic_time",
29+
"basic_time_no_millis",
30+
"basic_t_time",
31+
"hour_minute_second",
32+
"HH:mm.ss",
33+
"HH:mm.ssZ"
34+
],
35+
"dynamic_templates": [
36+
{
37+
"dates": {
38+
"match_mapping_type": "string",
39+
"match_pattern": "regex",
40+
"match": "(?i).*(date|_datetime|_dt|_dttm|_dat|_datime|_time|_ts|_timestamp|time|when|dt|dttm|timestamp|created|updated|modified|inserted|recorded|logged|entered|performed|signed|cosigned|completed|admit|discharge|visit|appointment|service|start|end|effective|expiry|validfrom|validto|close)$",
41+
"mapping": {
42+
"type": "date",
43+
"format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis||basic_date||date_hour_minute_second"
44+
}
45+
}
46+
},
47+
{
48+
"strings_as_text": {
49+
"match_mapping_type": "string",
50+
"mapping": {
51+
"type": "text",
52+
"analyzer": "standard",
53+
"fields": {
54+
"keyword": {
55+
"type": "keyword",
56+
"ignore_above": 256
57+
}
58+
}
59+
}
60+
}
61+
}
62+
],
63+
"properties": {
64+
"id": {
65+
"type": "keyword"
66+
}
67+
}
68+
}
69+
}
70+
}

0 commit comments

Comments
 (0)