Last active
November 2, 2021 05:29
-
-
Save DarkcoderSe/4f3fadeb08e184f20801f337188a1bbe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## ESI_PROCEDURE Index Pattern | |
curl -X PUT 'http://localhost:9200/caf-v1?pretty' -H 'Content-Type: application/json' -d '{ | |
"mappings": { | |
"properties": { | |
"id": { "type": "long" }, | |
"facility_id": { "type": "keyword" }, | |
"code": { "type": "keyword" }, | |
"address": { "type": "text" }, | |
"city": { "type": "keyword" }, | |
"code_original": { "type": "keyword" }, | |
"emergency_services": { "type": "keyword" }, | |
"description": { "type": "text" }, | |
"facility_name": { "type": "keyword" }, | |
"hospital_overall_rating": { "type": "keyword" }, | |
"hospital_type": { "type": "keyword" }, | |
"location": { "type": "geo_point" }, | |
"phone_number": { "type": "keyword" }, | |
"price": { "type": "float" }, | |
"state": { "type": "keyword" }, | |
"zip_code": { "type": "keyword" } | |
} | |
} | |
}' | |
## ESI_HOSPITAL Index pattern | |
curl -X PUT 'http://localhost:9200/hospitals-v1?pretty' -H 'Content-Type: application/json' -d '{ | |
"mappings": { | |
"properties": { | |
"address" : { | |
"type" : "text" | |
}, | |
"city" : { | |
"type" : "keyword" | |
}, | |
"emergency_services" : { | |
"type" : "keyword" | |
}, | |
"facility_id" : { | |
"type" : "keyword" | |
}, | |
"facility_name" : { | |
"type" : "text" | |
}, | |
"hospital_overall_rating" : { | |
"type" : "keyword" | |
}, | |
"hospital_type" : { | |
"type" : "keyword" | |
}, | |
"id" : { | |
"type" : "long" | |
}, | |
"location" : { | |
"type" : "geo_point" | |
}, | |
"phone_number" : { | |
"type" : "keyword" | |
}, | |
"state" : { | |
"type" : "keyword" | |
}, | |
"zip_code" : { | |
"type" : "keyword" | |
} | |
} | |
} | |
}' | |
## ESI_CPT ( MasterList ) | |
curl -X PUT 'http://localhost:9200/cpt_v1?pretty' -H 'Content-Type: application/json' -d '{ | |
"mappings": { | |
"properties": { | |
"id": { "type": "long" }, | |
"cpt_code": { "type": "keyword" }, | |
"description": { "type": "text" } | |
} | |
} | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment