---
# System prepended metadata

title: OSD Project Harmor

---


# OSD Project Harmor

# Domain 
web app`https://harmor.osd.co.th/public/api`

mobile `https://m.harmor.osd.co.th/public/api`

## Status

```csv
waitting_approve รอยืนยันนัด
approve ยืนยันนัด
cancel ยกเลิกนัด
done เข้ารับการรักษาแล้่ว
```

## Register Step

### lookup id card number
#### Example Curl
```csv
curl --location --request GET 'https://harmor.osd.co.th/public/api/harmor/users/lookupprofile/316030040xxxx'
```


### create patients
#### Example Curl
```csv
curl --location --request POST 'https://harmor.osd.co.th/public/api/harmor/patients/createpatients' \
--header 'Content-Type: application/json' \
--data-raw '{
    "housenumber": "105",
    "prefix": "นาย",
    "name": "doctor2",
    "surname": "doctor2",
    "sex": "ชาย",
    "birthday": "23/9/2004",
    "id_card_number": "doctor2",
    "code_rights": "89",
    "treatment_rights": "บัตรประกันสุขภาพถ้วนหน้า(UC)",
    "congenital_disease": "",
    "address_status": true,
    "house_registration": "มีชื่อในทะเบียนบ้าน และอยู่อาศัยจริง",
    "education_level": "ประถมศึกษา",
    "occupation": "ในความปกครอง",
    "religion": "พุทธ",
    "club": "",
    "marital_status": "โสด",
    "father": "",
    "mother": "",
    "married_couple": "",
    "detail_adress": "",
    "email": ""
}'
```


### create user
#### Example Curl
```csv
curl --location --request POST 'https://harmor.osd.co.th/public/api/harmor/users/create' \
--header 'Content-Type: application/json' \
--data-raw '{
    "active": true,
    "phonenumber": "0857100201",
    "id_card_number": "doctor2",
    "type": 3,
    "password":"P@ssw0rd"
}'
```



## Patients

### ข้อมูลตัวเองด้วย Auth
#### Example Curl

```csv
curl --location --request GET 'http://localhost:4000/harmor/patients' \
--header 'Accept: application/json, text/plain, */*' \
--header 'Accept-Language: en-US,en;q=0.9,th;q=0.8' \
--header 'Connection: keep-alive' \
--header 'If-None-Match: W/"2-l9Fw4VUO7kr8CvBlt4zaMCqXZ0w"' \
--header 'Origin: http://localhost:3000' \
--header 'Referer: http://localhost:3000/' \
--header 'Sec-Fetch-Dest: empty' \
--header 'Sec-Fetch-Mode: cors' \
--header 'Sec-Fetch-Site: same-site' \
--header 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36' \
--header 'sec-ch-ua: "Google Chrome";v="113", "Chromium";v="113", "Not-A.Brand";v="24"' \
--header 'sec-ch-ua-mobile: ?0' \
--header 'sec-ch-ua-platform: "macOS"' \
--header 'Authorization: Bearer Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3MiOnsib3JnYW5pemF0aW9uSWQiOiJlZTY3MDQxMi1iYjcxLTRjN2EtYjkyOC05MTU4YzVkMjE3NmQiLCJ1c2VyQWNjZXNzIjpbeyJncm91cElkIjoiMTg0Y2Y2N2QtYzY4MS00M2FhLWFkMjctMmFmOWUwYmU5YWJkIiwiZ3JvdXBOYW1lIjoiYWRtaW5oYXJtb3IiLCJyb2xlcyI6WyJkdXR5ZGF5IiwiY3JlYXRldXNlcnMiLCJjcmVhdGVhZGRyZXNzIiwic2V0dGluZ2FkZHJlc3MiLCJhcHBvaW50bWVudCIsInZvbHVudGVlcnMiLCJjYXNlcmVwb3J0cyIsIm5ld3MiLCJkYXNoYm9hcmQiLCJxdWV1ZSIsImhvbWVfc2V0dGluZ3MiLCJzZXR0aW5nIl19XX0sImlhdCI6MTY4NjEyNTUyMSwiZXhwIjoxNjg2MTI1ODIxLCJhdWQiOiIyZTRkMWMxNy1hNGU2LTQwOWItOTYxOC0yOWExOWI4ZGU1Y2YiLCJpc3MiOiJodHRwOi8vbG9jYWxob3N0Iiwic3ViIjoiMjQwY2UyNDgtZGRjMi00Y2U3LWE1MjktMDI4MmFhZmZkODIzIn0.LXWjupCl8uVamiaK3K96G0bl4_janQBJI3vwGuTgRJgHTXACQmRySReUNuSqMotexNSC2VlZSBWukGVdg84AdtKWSdjkIq2fcq3-U_edZjWxydA1mQ0vV1h4Dgcxhksp-KRdTz5sUBh6HPTh8maONRraS791jBmTnC3zExDpWnwfyJdfO3s8wmHxrAM3VfTfKrN5XoXVNvbGi7JyYQ6cJpteJSgDEGG7fAYXARfveq-I4GuIZvNDZXORGF8iV75xCvDqtLxVn-qBdWPzm8TWFYl_rhsJEIFXfdca80_M6QhcyfVR1b9R0FdhYQlsHbUkRtcuq895U7pdgNd2Z2-fYw'
```


### อัพเดทข้อมูลผู้ป่วย
#### Example Curl
```csv
curl --location --request PUT 'http://localhost:4000/harmor/patients/updatepatients/f7d37810-a068-4277-8d6d-4f7d56a533d5' \
--header 'Content-Type: application/json' \
--data-raw '{
    "prefix": "นาย",
    "name": "กนกพล",
    "surname": "แก้วกำพล",
    "sex": "ชาย",
    "birthday": "23/9/2004",
    "housenumber": "106",
    "club": "",
    "religion": "พุทธ",
    "phonenumber": "",
    "email": "",
    "detail_address": ""
}'
```



### ข้อมูลผู้ป่วยทั้งหมด
#### Example Curl

```csv
curl --location --request GET 'https://harmor.osd.co.th/public/api/harmor/patients' \
--header 'Authorization: Bearer Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3MiOnsib3JnYW5pemF0aW9uSWQiOiJlZTY3MDQxMi1iYjcxLTRjN2EtYjkyOC05MTU4YzVkMjE3NmQiLCJ1c2VyQWNjZXNzIjpbeyJncm91cElkIjoiMTg0Y2Y2N2QtYzY4MS00M2FhLWFkMjctMmFmOWUwYmU5YWJkIiwiZ3JvdXBOYW1lIjoiYWRtaW5oYXJtb3IiLCJyb2xlcyI6WyJkdXR5ZGF5IiwiY3JlYXRldXNlcnMiLCJjcmVhdGVhZGRyZXNzIiwic2V0dGluZ2FkZHJlc3MiLCJhcHBvaW50bWVudCIsInZvbHVudGVlcnMiLCJjYXNlcmVwb3J0cyIsIm5ld3MiLCJkYXNoYm9hcmQiLCJxdWV1ZSIsImhvbWVfc2V0dGluZ3MiLCJzZXR0aW5nIl19XX0sImlhdCI6MTY4NjEyNTUyMSwiZXhwIjoxNjg2MTI1ODIxLCJhdWQiOiIyZTRkMWMxNy1hNGU2LTQwOWItOTYxOC0yOWExOWI4ZGU1Y2YiLCJpc3MiOiJodHRwOi8vbG9jYWxob3N0Iiwic3ViIjoiMjQwY2UyNDgtZGRjMi00Y2U3LWE1MjktMDI4MmFhZmZkODIzIn0.LXWjupCl8uVamiaK3K96G0bl4_janQBJI3vwGuTgRJgHTXACQmRySReUNuSqMotexNSC2VlZSBWukGVdg84AdtKWSdjkIq2fcq3-U_edZjWxydA1mQ0vV1h4Dgcxhksp-KRdTz5sUBh6HPTh8maONRraS791jBmTnC3zExDpWnwfyJdfO3s8wmHxrAM3VfTfKrN5XoXVNvbGi7JyYQ6cJpteJSgDEGG7fAYXARfveq-I4GuIZvNDZXORGF8iV75xCvDqtLxVn-qBdWPzm8TWFYl_rhsJEIFXfdca80_M6QhcyfVR1b9R0FdhYQlsHbUkRtcuq895U7pdgNd2Z2-fYw'
```

## Appointment

### สร้างนัดหมาย (ผู้ป่วย)
#### Example Curl
```csv
curl --location --request POST 'https://harmor.osd.co.th/public/api/harmor/patients/createappointment' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3MiOnsib3JnYW5pemF0aW9uSWQiOiJlZTY3MDQxMi1iYjcxLTRjN2EtYjkyOC05MTU4YzVkMjE3NmQiLCJ1c2VyQWNjZXNzIjpbeyJncm91cElkIjoiM2I5ODU3OWMtZGMzZS00ZGYzLWE4OWEtZTRlNGIyZDQ1ZGYxIiwiZ3JvdXBOYW1lIjoicGF0aWVudCIsInJvbGVzIjpbImFwcG9pbnRtZW50IiwiY2FzZXJlcG9ydHMiXX1dfSwiaWF0IjoxNjg0OTgzMTg5LCJleHAiOjE2ODQ5ODM0ODksImF1ZCI6IjJlNGQxYzE3LWE0ZTYtNDA5Yi05NjE4LTI5YTE5YjhkZTVjZiIsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3QiLCJzdWIiOiJhYjJlYWQ0Ny05Njc0LTRmODMtYWRmNy1jMzU2YTUzNDExNDMifQ.UXCg9uVBkl3r_DIZDdEIlg6wGHm-_2oCSLZUSNxZOn8rHhZUl316VOpQjACOOC3j3d5_ur-WBtljcX5fwh7C-gvBWN0o5o44u-uOPPCg1k8rG0NYEEE2MRACsAe8a-V35qMqB43fHNzBb7geozRKTLnvVUFFwDuKsqM3eYoQQTYFDo2kJM7Jt01F0u-WswJj_6IihZEnF6_4xlkzMB4rmp714rrDGW00BkZ093P1wWjIuvwYdxkpMj7CBvYLUgrL_fGQrPuvwKf6-F4mrW9FK7XEQK80ghK7DD3EjaYRbWMaSrHjEYS2YMGw7t11keSYAIkd1Lsa3k5gPRTyX8pFFw' \
--header 'Content-Type: application/json' \
--data-raw '{
    "time": "09:00",
    "status": "waiting_approve",
    "createBy": "1b3d0176-cd1e-4439-aa02-50d61f2ae117",
    "duty_day_id": "ef13ff1a-7aef-4cdf-a900-88ada980635a",
    "treatment_rights": "",
    "history_of_drug_use": "",
    "location": "",
    "health_problems": ""
}'
```

### สร้างนัดหมาย (หมอ)
#### Example Curl
```csv
curl --location --request POST 'http://localhost:4000/harmor/patients/createappointmentdoctor' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3MiOnsib3JnYW5pemF0aW9uSWQiOiJlZTY3MDQxMi1iYjcxLTRjN2EtYjkyOC05MTU4YzVkMjE3NmQiLCJ1c2VyQWNjZXNzIjpbeyJncm91cElkIjoiNjNjNzZlYzMtNzQ5Zi00ZWQ0LTgxNTAtYTllMzQ5Y2IyZDdkIiwiZ3JvdXBOYW1lIjoiYWRtaW5oYXJtb3IiLCJyb2xlcyI6WyJkdXR5ZGF5IiwiYXBwb2ludG1lbnQiLCJjYXNlcmVwb3J0cyIsImNyZWF0ZXVzZXJzIiwiZGFzaGJvYXJkIiwiY3JlYXRlYWRkcmVzcyIsInZvbHVudGVlcnMiLCJzZXR0aW5nIiwicXVldWUiXX1dfSwiaWF0IjoxNjg0NzQ1ODcyLCJleHAiOjE2ODQ3NDYxNzIsImF1ZCI6IjgyMzU2OGE2LWUzZTAtNDcxMS05OWExLTE4NTc3M2U1MWQ4ZSIsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3QiLCJzdWIiOiI0OWFiNjRlNi1mZWI1LTRkMjAtYjY2ZS1hYTUzMDBmZGIyZDYifQ.uIKoZnzJPx3ElUXXM06hyPLChOFna911Bn1B1hL1iW4kXb8elRCXjRGch9xKBZORI9WwfJBEcarCjHoVV-EjwlakCe32fSqslFqKxg-6Cxij3oUoFikKgXauk4BK487JzwmTwenRp22auAZysTymuuGy8ulVi4fX5l2jVKT5siQv-XevpHoyIME-GzToFZCYBvwp9hgh79SQ5RY3bKXy5AjRhGfddMU96iRHELeq6KkyI5IzAqXwekjj6joAqkKDsytH22jbbCGAodn2sKpPnFGnp2gpKj9VzFIJWi7k9gTaUJ43vZmr9UY1XePw1bJmODpgv41qHZfuLbRja5ORoQ'
```

### อัพเดทนัดหมาย (หมอ,ผู้ป่วย)
#### Example Curl
```csv
curl --location --request PUT 'http://localhost:4000/harmor/patients/updateappointment' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3MiOnsib3JnYW5pemF0aW9uSWQiOiJlZTY3MDQxMi1iYjcxLTRjN2EtYjkyOC05MTU4YzVkMjE3NmQiLCJ1c2VyQWNjZXNzIjpbeyJncm91cElkIjoiZTNkYWM0NzUtY2Y1NS00ODc5LWExOTItNDE4YmYyMDNiMmEzIiwiZ3JvdXBOYW1lIjoicGF0aWVudCIsInJvbGVzIjpbImNhc2VyZXBvcnRzIl19XX0sImlhdCI6MTY4NDY2MTIwNCwiZXhwIjoxNjg0NjYxNTA0LCJhdWQiOiI4MjM1NjhhNi1lM2UwLTQ3MTEtOTlhMS0xODU3NzNlNTFkOGUiLCJpc3MiOiJodHRwOi8vbG9jYWxob3N0Iiwic3ViIjoiZDBjMGE4NWUtMmVmZi00MWFlLTgxNjktZDgyYjE4ZTE0OGM5In0.kpN7w4U5Gn2mFgWJow0qwzJXEA6_ts09ehgGsJTQQVMyVLC1Hudk4VrOoqq0LwCBXiklzlZbfbKf2kVpWKOy82B50aKOcgN7z6LY9El_Aj4_PN6HGQiX3GdptkCZDKUKGsITIkJ2bi0uk2Ug7uzQbqnyqHGhY_T07fdSZH1B-0-PIzgbn6A_gYizMSKrkTEw7mgZyt3i0eYIVjpv1wwkuo5blBnzz22Y4zsFnudFhrAOh-y1YFe6_sKvBOZ2-EndXRYU3A9d1bQKUEUIkjJq-SzejPNa_e6ZxFgEd4V5h4BJ9igYvx6rXd_VLbxySFWYPlbWgpqzysaRcwfxEvGpRQ' \
--header 'Content-Type: application/json' \
--data-raw '{
    "appointment_id": "5cb36160-54de-4119-87f9-f86bb941e644",
    "time": "08:00",
    "status": "cancel",
    "createBy": "32840faa-c0cf-416e-a81a-14673beb85c9",
    "duty_day_id": "daab2d3b-53de-4b6e-968a-a478fe4b4538"
}'
```

### ยืนยันนัดหมาย (หมอ,ผู้ป่วย)
#### Example Curl
```csv
curl --location --request PUT 'https://harmor.osd.co.th/public/api/harmor/patients/approveappointment' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3MiOnsib3JnYW5pemF0aW9uSWQiOiJlZTY3MDQxMi1iYjcxLTRjN2EtYjkyOC05MTU4YzVkMjE3NmQiLCJ1c2VyQWNjZXNzIjpbeyJncm91cElkIjoiM2I5ODU3OWMtZGMzZS00ZGYzLWE4OWEtZTRlNGIyZDQ1ZGYxIiwiZ3JvdXBOYW1lIjoicGF0aWVudCIsInJvbGVzIjpbImFwcG9pbnRtZW50IiwiY2FzZXJlcG9ydHMiXX1dfSwiaWF0IjoxNjg0OTg4OTI5LCJleHAiOjE2ODQ5ODkyMjksImF1ZCI6IjJlNGQxYzE3LWE0ZTYtNDA5Yi05NjE4LTI5YTE5YjhkZTVjZiIsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3QiLCJzdWIiOiIwNTFjMzVhNy1kMTU5LTRjMTItOGIxNS02ZTM1Nzg3OTIxZDgifQ.BY5upcS4esEQpn0nY4Fo0f-uB6Rf51i2RJezg5rhW0VYFdiBb3-wOeOPHee_3Rmh98dBFKG2cW3zZ8dZDRAo8pHLMlzreFLfRUPziPygYqB9rLgdmCWmp8LuSc3FeQbZPJrYfCiZo3zrhjdjzsLY3IhDiNtCnVaOJiuFCeOWedJ3V2SMWyKMQo0yvKVkFaBZ3EggmqQo02U-w2OHbo1YKCO7egD4R9rnq-yCuB1SjqWzWzbFIuok_MvIbSF4BA8Ab-yhc1Z8kKv0oUQ1RcZbwo1IEPiG2ZYcE2zWDA5tzw63jOSv1TdwcWwC1QJRv5f4ukypng_30nVOzLKc5eR0JA' \
--header 'Content-Type: application/json' \
--data-raw '{
    "appointment_id": "a3e69757-f177-4654-bac5-be1178c76025",
    "status": "approve",
    "approveBy": "1b3d0176-cd1e-4439-aa02-50d61f2ae117"
}'
```

### ดึงข้อมูลนัดหมาย (หมอ,ผู้ป่วย)
#### Example Curl
```csv
curl --location --request GET 'http://localhost:4000/harmor/patients/findlistappointment' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3MiOnsib3JnYW5pemF0aW9uSWQiOiJlZTY3MDQxMi1iYjcxLTRjN2EtYjkyOC05MTU4YzVkMjE3NmQiLCJ1c2VyQWNjZXNzIjpbeyJncm91cElkIjoiZTNkYWM0NzUtY2Y1NS00ODc5LWExOTItNDE4YmYyMDNiMmEzIiwiZ3JvdXBOYW1lIjoicGF0aWVudCIsInJvbGVzIjpbImNhc2VyZXBvcnRzIl19XX0sImlhdCI6MTY4NDY2MTIwNCwiZXhwIjoxNjg0NjYxNTA0LCJhdWQiOiI4MjM1NjhhNi1lM2UwLTQ3MTEtOTlhMS0xODU3NzNlNTFkOGUiLCJpc3MiOiJodHRwOi8vbG9jYWxob3N0Iiwic3ViIjoiZDBjMGE4NWUtMmVmZi00MWFlLTgxNjktZDgyYjE4ZTE0OGM5In0.kpN7w4U5Gn2mFgWJow0qwzJXEA6_ts09ehgGsJTQQVMyVLC1Hudk4VrOoqq0LwCBXiklzlZbfbKf2kVpWKOy82B50aKOcgN7z6LY9El_Aj4_PN6HGQiX3GdptkCZDKUKGsITIkJ2bi0uk2Ug7uzQbqnyqHGhY_T07fdSZH1B-0-PIzgbn6A_gYizMSKrkTEw7mgZyt3i0eYIVjpv1wwkuo5blBnzz22Y4zsFnudFhrAOh-y1YFe6_sKvBOZ2-EndXRYU3A9d1bQKUEUIkjJq-SzejPNa_e6ZxFgEd4V5h4BJ9igYvx6rXd_VLbxySFWYPlbWgpqzysaRcwfxEvGpRQ'
```


### อัพโหลดรูปนัดหมาย
#### Example Curl
```csv
curl --location --request POST 'https://harmor.osd.co.th/public/api/harmor/patients/images/9cd02a77-5fd6-4964-b657-f089f8274314' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3MiOnsib3JnYW5pemF0aW9uSWQiOiJlZTY3MDQxMi1iYjcxLTRjN2EtYjkyOC05MTU4YzVkMjE3NmQiLCJ1c2VyQWNjZXNzIjpbeyJncm91cElkIjoiMTg0Y2Y2N2QtYzY4MS00M2FhLWFkMjctMmFmOWUwYmU5YWJkIiwiZ3JvdXBOYW1lIjoiYWRtaW5oYXJtb3IiLCJyb2xlcyI6WyJkdXR5ZGF5IiwiY3JlYXRldXNlcnMiLCJjcmVhdGVhZGRyZXNzIiwic2V0dGluZ2FkZHJlc3MiLCJhcHBvaW50bWVudCIsInZvbHVudGVlcnMiLCJjYXNlcmVwb3J0cyIsIm5ld3MiLCJkYXNoYm9hcmQiLCJxdWV1ZSIsImhvbWVfc2V0dGluZ3MiLCJzZXR0aW5nIl19XX0sImlhdCI6MTY4NjAxODk1OSwiZXhwIjoxNjg2MDE5MjU5LCJhdWQiOiIyZTRkMWMxNy1hNGU2LTQwOWItOTYxOC0yOWExOWI4ZGU1Y2YiLCJpc3MiOiJodHRwOi8vbG9jYWxob3N0Iiwic3ViIjoiMjQwY2UyNDgtZGRjMi00Y2U3LWE1MjktMDI4MmFhZmZkODIzIn0.dWb79BMEUm3HEKwyiyWe9mcq5KHiRcMp891nRlccb4zPjP-q3e3SyyvJ5OqX0kFdD54MoA8vGumdvwFXyZ_aBR-VRjywy7gYMUjXKrLmNRhh1d_gAHP3UJcxgd-c2CbE-Q-ikjY8JbrzrEPsNWTX2wjl6ZeOVzLbCJdga9AUvktSUfU7H5V-hK_Gw1VhWLXbRtTCBFNpFEAwq6tp3f-TU-BbV16h0RQQIHjRT974MeRV3cAZCys5LhPPJtrHRp2lMWnIf0SSLNbqUzXEJ_IadHQBKAFxR04JLjvDP1A6Wl3exutekparn8XKicAND7NS0Y9SjvyqKu9Iuae6tcdbGw' \
--form 'images=@"/Users/mac-kanokphon/Downloads/1684291593606.jpg"' \
--form 'images=@"/Users/mac-kanokphon/Downloads/1684291611133.jpg"'
```

### ดึงข้อมูลรูปนัดหมายนั้นๆ
#### Example Curl
```csv
curl --location --request GET 'https://harmor.osd.co.th/public/api/harmor/patients/images/9cd02a77-5fd6-4964-b657-f089f8274314' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3MiOnsib3JnYW5pemF0aW9uSWQiOiJlZTY3MDQxMi1iYjcxLTRjN2EtYjkyOC05MTU4YzVkMjE3NmQiLCJ1c2VyQWNjZXNzIjpbeyJncm91cElkIjoiMTg0Y2Y2N2QtYzY4MS00M2FhLWFkMjctMmFmOWUwYmU5YWJkIiwiZ3JvdXBOYW1lIjoiYWRtaW5oYXJtb3IiLCJyb2xlcyI6WyJkdXR5ZGF5IiwiY3JlYXRldXNlcnMiLCJjcmVhdGVhZGRyZXNzIiwic2V0dGluZ2FkZHJlc3MiLCJhcHBvaW50bWVudCIsInZvbHVudGVlcnMiLCJjYXNlcmVwb3J0cyIsIm5ld3MiLCJkYXNoYm9hcmQiLCJxdWV1ZSIsImhvbWVfc2V0dGluZ3MiLCJzZXR0aW5nIl19XX0sImlhdCI6MTY4NjAxODk1OSwiZXhwIjoxNjg2MDE5MjU5LCJhdWQiOiIyZTRkMWMxNy1hNGU2LTQwOWItOTYxOC0yOWExOWI4ZGU1Y2YiLCJpc3MiOiJodHRwOi8vbG9jYWxob3N0Iiwic3ViIjoiMjQwY2UyNDgtZGRjMi00Y2U3LWE1MjktMDI4MmFhZmZkODIzIn0.dWb79BMEUm3HEKwyiyWe9mcq5KHiRcMp891nRlccb4zPjP-q3e3SyyvJ5OqX0kFdD54MoA8vGumdvwFXyZ_aBR-VRjywy7gYMUjXKrLmNRhh1d_gAHP3UJcxgd-c2CbE-Q-ikjY8JbrzrEPsNWTX2wjl6ZeOVzLbCJdga9AUvktSUfU7H5V-hK_Gw1VhWLXbRtTCBFNpFEAwq6tp3f-TU-BbV16h0RQQIHjRT974MeRV3cAZCys5LhPPJtrHRp2lMWnIf0SSLNbqUzXEJ_IadHQBKAFxR04JLjvDP1A6Wl3exutekparn8XKicAND7NS0Y9SjvyqKu9Iuae6tcdbGw'
```



### ลบรูปนัดหมายนั้นๆ
#### Example Curl
```csv
curl --location --request DELETE 'https://harmor.osd.co.th/public/api/harmor/patients/images/9cd02a77-5fd6-4964-b657-f089f8274314' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3MiOnsib3JnYW5pemF0aW9uSWQiOiJlZTY3MDQxMi1iYjcxLTRjN2EtYjkyOC05MTU4YzVkMjE3NmQiLCJ1c2VyQWNjZXNzIjpbeyJncm91cElkIjoiMTg0Y2Y2N2QtYzY4MS00M2FhLWFkMjctMmFmOWUwYmU5YWJkIiwiZ3JvdXBOYW1lIjoiYWRtaW5oYXJtb3IiLCJyb2xlcyI6WyJkdXR5ZGF5IiwiY3JlYXRldXNlcnMiLCJjcmVhdGVhZGRyZXNzIiwic2V0dGluZ2FkZHJlc3MiLCJhcHBvaW50bWVudCIsInZvbHVudGVlcnMiLCJjYXNlcmVwb3J0cyIsIm5ld3MiLCJkYXNoYm9hcmQiLCJxdWV1ZSIsImhvbWVfc2V0dGluZ3MiLCJzZXR0aW5nIl19XX0sImlhdCI6MTY4NjAxODk1OSwiZXhwIjoxNjg2MDE5MjU5LCJhdWQiOiIyZTRkMWMxNy1hNGU2LTQwOWItOTYxOC0yOWExOWI4ZGU1Y2YiLCJpc3MiOiJodHRwOi8vbG9jYWxob3N0Iiwic3ViIjoiMjQwY2UyNDgtZGRjMi00Y2U3LWE1MjktMDI4MmFhZmZkODIzIn0.dWb79BMEUm3HEKwyiyWe9mcq5KHiRcMp891nRlccb4zPjP-q3e3SyyvJ5OqX0kFdD54MoA8vGumdvwFXyZ_aBR-VRjywy7gYMUjXKrLmNRhh1d_gAHP3UJcxgd-c2CbE-Q-ikjY8JbrzrEPsNWTX2wjl6ZeOVzLbCJdga9AUvktSUfU7H5V-hK_Gw1VhWLXbRtTCBFNpFEAwq6tp3f-TU-BbV16h0RQQIHjRT974MeRV3cAZCys5LhPPJtrHRp2lMWnIf0SSLNbqUzXEJ_IadHQBKAFxR04JLjvDP1A6Wl3exutekparn8XKicAND7NS0Y9SjvyqKu9Iuae6tcdbGw' \
--header 'Content-Type: application/json' \
--data-raw '{
    "idfile": "067f2947-5479-47db-9719-f579b82bf1fd-1684291611133.jpg"
}'
```

### รูป
#### Example Curl
```csv
curl --location --request GET 'https://harmor.osd.co.th/public/api/harmor/patients/image/appointment/2ef03b8a-1798-4fad-819f-367b75910304-1684291593606.jpg'
```

### ดึงเวลาว่างในวันนั้นๆ
#### Example Curl
```csv
curl --location --request GET 'https://harmor.osd.co.th/public/api/harmor/doctor/conditiontimeappointment/2023-06-07'
```

## Carlendar

### ดึงข้อมูลลงเวรของหมอทั้งหมด
#### Example Curl
```csv 
curl --location --request GET 'http://localhost:4000/harmor/patients/carlendar' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3MiOnsib3JnYW5pemF0aW9uSWQiOiJlZTY3MDQxMi1iYjcxLTRjN2EtYjkyOC05MTU4YzVkMjE3NmQiLCJ1c2VyQWNjZXNzIjpbeyJncm91cElkIjoiZTNkYWM0NzUtY2Y1NS00ODc5LWExOTItNDE4YmYyMDNiMmEzIiwiZ3JvdXBOYW1lIjoicGF0aWVudCIsInJvbGVzIjpbImFwcG9pbnRtZW50IiwiY2FzZXJlcG9ydHMiXX1dfSwiaWF0IjoxNjg0ODM2Njg0LCJleHAiOjE2ODQ4MzY5ODQsImF1ZCI6IjgyMzU2OGE2LWUzZTAtNDcxMS05OWExLTE4NTc3M2U1MWQ4ZSIsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3QiLCJzdWIiOiJkMGMwYTg1ZS0yZWZmLTQxYWUtODE2OS1kODJiMThlMTQ4YzkifQ.BM0jnTtxLz3rBeQgVD3iPKMUdQ5qmFyWSZQIzvGAb6IP3wfPSUOa3uEb-tqpWh3hFqGEUqh6N838_faCBOqIEGnPQHJBfp2bkvdn95_E4OXg422KRHv-XyLrG5c4eDm1yjwuw5DLzDwfbNjwWrYpO-V1oTFzcUtgG7JTcb4hOHmDoSiKXrEqbY_wnZGHsY1PuyPZDBPPfwp6BbHVYArADNJwWnWsAA-c_cyCaCmT7Skaoq24qK7Fo-7X4xvqrsRphCzTy4o9NSRdSZuzFWKZj5_KxnrQ4uA1Dsq5LESoLMVWANyBaZ8fw62p7kz2UtDESlWbMDHHOiVEaxGFIgBH6A'
```

### ดึงข้อมูลลงเวรของหมอที่ยังอยู่ในเวลา
#### Example Curl
```csv
curl --location --request GET 'https://harmor.osd.co.th/public/api/harmor/patients/dutydaycurrent'
```


## Users

### สร้าง Users
#### Example Curl
```csv
curl --location --request POST 'https://harmor.osd.co.th/public/api/harmor/users/create' \
--header 'Content-Type: application/json' \
--data-raw '{
    "active": true,
    "phonenumber": "0857100201",
    "id_card_number": "doctor2",
    "type": 3,
    "password":"P@ssw0rd"
}' 
```

### เช็คข้อมูล Users
#### Example Curl
```csv
curl --location --request GET 'https://harmor.osd.co.th/public/api/harmor/users/lookupprofile/316030040xxxx'
```


### Update Users
#### Example Curl
```csv 
curl --location --request PUT 'http://localhost:4000/harmor/patients/updateprofile' \
--header 'Content-Type: application/json' \
--data-raw '{
    "phonenumber": "0857100201",
    "email": "adminharmor@harmor.co.th",
    "personal_information_id": "f7d37810-a068-4277-8d6d-4f7d56a533d5"
}'
```


## Queue

### Create queue ด้วย Qr
#### Example Curl
```csv 
curl --location --request POST 'http://localhost:4000/harmor/patients/createqueue' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3MiOnsib3JnYW5pemF0aW9uSWQiOiJlZTY3MDQxMi1iYjcxLTRjN2EtYjkyOC05MTU4YzVkMjE3NmQiLCJ1c2VyQWNjZXNzIjpbeyJncm91cElkIjoiNjNjNzZlYzMtNzQ5Zi00ZWQ0LTgxNTAtYTllMzQ5Y2IyZDdkIiwiZ3JvdXBOYW1lIjoiYWRtaW5oYXJtb3IiLCJyb2xlcyI6WyJkdXR5ZGF5IiwiYXBwb2ludG1lbnQiLCJob21lX3NldHRpbmdzIiwiY2FzZXJlcG9ydHMiLCJjcmVhdGV1c2VycyIsImRhc2hib2FyZCIsImNyZWF0ZWFkZHJlc3MiLCJ2b2x1bnRlZXJzIiwic2V0dGluZyIsInNldHRpbmdhZGRyZXNzIiwicXVldWUiXX1dfSwiaWF0IjoxNjg1NDIxMTAwLCJleHAiOjE2ODU0MjE0MDAsImF1ZCI6IjgyMzU2OGE2LWUzZTAtNDcxMS05OWExLTE4NTc3M2U1MWQ4ZSIsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3QiLCJzdWIiOiJiNzU2ODI5NC0zMjc5LTRlMTQtODQzYi03M2VkZWU4Zjg2ZjgifQ.qMyaBuGM2kV00k-BKWYweqrJe1ieY3hCOLSs7mdd7wfUZ8HSoOt4dnR5k-2e0nuFwCFe1LoJwS1t2PvkmHBpIXXF46vQ9FDGEHdXkFaOU1ZcPgEkag6O0JQzzhb-oHed6FM7bbUC3HNdSTUB0MYI0i3WQDUf69qNjUI8oHLsRLpOdZY_AXf1F0LsP5VpOpyvvkim9FMpICEFOHntB1F2Kh5-v1ojd3ejRODCfPHjALSw7Z4Fk_p4mJO9BKOnVkuUi1yGFRh3hDRjM2hG-3heiiDrDB_Sg3IuCrCVJvd77gX1SDYllCshgi0sn8TenIXsEjmv3SKPWMsnea-V5YbFIw' \
--header 'Content-Type: application/json' \
--data-raw '{
    "status":"checkin",
    "appointmentId": "5c993bee-09ea-424d-80d4-faa3cc471e77"
}'
```

### Create queue ด้วย id appointment
#### Example Curl
```csv 
curl --location --request POST 'http://localhost:4000/harmor/patients/createqueuebyid' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3MiOnsib3JnYW5pemF0aW9uSWQiOiJlZTY3MDQxMi1iYjcxLTRjN2EtYjkyOC05MTU4YzVkMjE3NmQiLCJ1c2VyQWNjZXNzIjpbeyJncm91cElkIjoiNjNjNzZlYzMtNzQ5Zi00ZWQ0LTgxNTAtYTllMzQ5Y2IyZDdkIiwiZ3JvdXBOYW1lIjoiYWRtaW5oYXJtb3IiLCJyb2xlcyI6WyJkdXR5ZGF5IiwiYXBwb2ludG1lbnQiLCJob21lX3NldHRpbmdzIiwiY2FzZXJlcG9ydHMiLCJjcmVhdGV1c2VycyIsImRhc2hib2FyZCIsImNyZWF0ZWFkZHJlc3MiLCJ2b2x1bnRlZXJzIiwic2V0dGluZyIsInNldHRpbmdhZGRyZXNzIiwicXVldWUiXX1dfSwiaWF0IjoxNjg1MDI3MzE0LCJleHAiOjE2ODUwMjc2MTQsImF1ZCI6IjgyMzU2OGE2LWUzZTAtNDcxMS05OWExLTE4NTc3M2U1MWQ4ZSIsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3QiLCJzdWIiOiJiNzU2ODI5NC0zMjc5LTRlMTQtODQzYi03M2VkZWU4Zjg2ZjgifQ.nz0lucLhzTwETJocl_VcsbBVpX5HNRGOdbPmN4gm0x4miR06VrN2MIZt7ey2afELiwCCwu3DHjfxNPqv-h9kP2XVtM_kVuWDVBsWoK_4FbUX5xDovKYuFEwHj3uD_iGtUB10O9LY7c9Q7KPIA0xUmDs2ufK7tOdB7ncyCx-6W8astWPIp1UcUaXfx0Q3EQDaJHJRbaBvC1nQw7w6zb6I88BKBFci0t45ytlNy5C7nPCdUuwz-5K4MPQk4oLS_Oy9J03WbOF1QsKt_GBQDcJYwpktdFABKivQAnxfCMqxdQ0Alx3wNAmsGi04HUb5Sr_RsifqebT5NTwLJ8oWCJxF1A' \
--header 'Content-Type: application/json' \
--data-raw '{
    "appointmentid": 8
}'
```


### Get queue ด้วย appointment_code
#### Example Curl
```csv 
curl --location --request GET 'http://localhost:4000/harmor/patients/findqueuebydate' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3MiOnsib3JnYW5pemF0aW9uSWQiOiJlZTY3MDQxMi1iYjcxLTRjN2EtYjkyOC05MTU4YzVkMjE3NmQiLCJ1c2VyQWNjZXNzIjpbeyJncm91cElkIjoiZTNkYWM0NzUtY2Y1NS00ODc5LWExOTItNDE4YmYyMDNiMmEzIiwiZ3JvdXBOYW1lIjoicGF0aWVudCIsInJvbGVzIjpbImFwcG9pbnRtZW50IiwiY2FzZXJlcG9ydHMiXX1dfSwiaWF0IjoxNjg0ODM2Njg0LCJleHAiOjE2ODQ4MzY5ODQsImF1ZCI6IjgyMzU2OGE2LWUzZTAtNDcxMS05OWExLTE4NTc3M2U1MWQ4ZSIsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3QiLCJzdWIiOiJkMGMwYTg1ZS0yZWZmLTQxYWUtODE2OS1kODJiMThlMTQ4YzkifQ.BM0jnTtxLz3rBeQgVD3iPKMUdQ5qmFyWSZQIzvGAb6IP3wfPSUOa3uEb-tqpWh3hFqGEUqh6N838_faCBOqIEGnPQHJBfp2bkvdn95_E4OXg422KRHv-XyLrG5c4eDm1yjwuw5DLzDwfbNjwWrYpO-V1oTFzcUtgG7JTcb4hOHmDoSiKXrEqbY_wnZGHsY1PuyPZDBPPfwp6BbHVYArADNJwWnWsAA-c_cyCaCmT7Skaoq24qK7Fo-7X4xvqrsRphCzTy4o9NSRdSZuzFWKZj5_KxnrQ4uA1Dsq5LESoLMVWANyBaZ8fw62p7kz2UtDESlWbMDHHOiVEaxGFIgBH6A'
```

### Update queue ด้วย appointment_code
#### Example Curl
```csv 
curl --location --request PUT 'http://localhost:4000/harmor/patients/queuedone' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3MiOnsib3JnYW5pemF0aW9uSWQiOiJlZTY3MDQxMi1iYjcxLTRjN2EtYjkyOC05MTU4YzVkMjE3NmQiLCJ1c2VyQWNjZXNzIjpbeyJncm91cElkIjoiNjNjNzZlYzMtNzQ5Zi00ZWQ0LTgxNTAtYTllMzQ5Y2IyZDdkIiwiZ3JvdXBOYW1lIjoiYWRtaW5oYXJtb3IiLCJyb2xlcyI6WyJkdXR5ZGF5IiwiYXBwb2ludG1lbnQiLCJob21lX3NldHRpbmdzIiwiY2FzZXJlcG9ydHMiLCJjcmVhdGV1c2VycyIsImRhc2hib2FyZCIsImNyZWF0ZWFkZHJlc3MiLCJ2b2x1bnRlZXJzIiwic2V0dGluZyIsInNldHRpbmdhZGRyZXNzIiwicXVldWUiXX1dfSwiaWF0IjoxNjg0OTE0ODI2LCJleHAiOjE2ODQ5MTUxMjYsImF1ZCI6IjgyMzU2OGE2LWUzZTAtNDcxMS05OWExLTE4NTc3M2U1MWQ4ZSIsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3QiLCJzdWIiOiJiNzU2ODI5NC0zMjc5LTRlMTQtODQzYi03M2VkZWU4Zjg2ZjgifQ.wqTFkpXq7baf50KDuhPReyBtm49oOXBFQQe_6rIQCtSXM95BTYFE0bEi28HuUnCxIFgMSQ6VcNPDhWl0Eb6elSWZ0b_0tXgoissnfb6tFXPNbrbj-CduCAkvLQcywmG1UVjAdNBvSx52RLn1PWpjBSCJ1gSbEorO-FpmGqtOmnZ354l02O6kc0AqEBgZ8ksFcjEzwIKXoQPE_Kk5BPnipGkpBju7RxSZ7lCWZpHoRav5_M_OnB2LeU2H26wzQ_moz4jp0Hj0oeUqz2MUdOb3SV-HjseXRcHhPsMibe8_3KrPq_RFJDJ0OztmteSJvL7MzONvRh4T1_gimuNnMmj-FA' \
--header 'Content-Type: application/json' \
--data-raw '{
    "appointmentcode":"56125f47-fdc1-4416-8176-dc0b95949837"
}'
```

## ข่าว

### ดึงข่าวทั้งหมด
#### Example Curl
```csv 
curl --location --request GET 'https://harmor.osd.co.th/public/api/harmor/new' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3MiOnsib3JnYW5pemF0aW9uSWQiOiJlZTY3MDQxMi1iYjcxLTRjN2EtYjkyOC05MTU4YzVkMjE3NmQiLCJ1c2VyQWNjZXNzIjpbeyJncm91cElkIjoiMTg0Y2Y2N2QtYzY4MS00M2FhLWFkMjctMmFmOWUwYmU5YWJkIiwiZ3JvdXBOYW1lIjoiYWRtaW5oYXJtb3IiLCJyb2xlcyI6WyJkdXR5ZGF5IiwiY3JlYXRldXNlcnMiLCJjcmVhdGVhZGRyZXNzIiwic2V0dGluZ2FkZHJlc3MiLCJhcHBvaW50bWVudCIsInZvbHVudGVlcnMiLCJjYXNlcmVwb3J0cyIsIm5ld3MiLCJkYXNoYm9hcmQiLCJxdWV1ZSIsImhvbWVfc2V0dGluZ3MiLCJzZXR0aW5nIl19XX0sImlhdCI6MTY4NjA2ODY5NCwiZXhwIjoxNjg2MDY4OTk0LCJhdWQiOiIyZTRkMWMxNy1hNGU2LTQwOWItOTYxOC0yOWExOWI4ZGU1Y2YiLCJpc3MiOiJodHRwOi8vbG9jYWxob3N0Iiwic3ViIjoiMjQwY2UyNDgtZGRjMi00Y2U3LWE1MjktMDI4MmFhZmZkODIzIn0.frvpnR6JmvhEzNGo7basu41QdQggK9DRPZEIAZBWUFoXoTxkDm_DxPaC0q4y7yN_mIne4ru6AYEbo2HPK2KqWEZ5Cg_u-3x3gPW4CzazS6iwBsIkTvr3JkkD6ttq7-QesVjEFOZbpGqQACD0Mxgxp_ea4daSbIv8iFZS6LmAqLPl2SerpEZJTwo70lZeMTk-A6qF5o9YKOtetpmsf_BG8m323Ttz5FK8r-jhOvtnl2iUhbURk2NGh_xX1XKiJg9vlzSKlS7tck50WozJk6GER_NsICPNas3kkwbrDL_vE9vuKt96s7a1Qut7D1kLf0qdH582TblWmrD3c_Qy1lddVA'
```


### ดึงรูปข่าวด้วย id
#### Example Curl
```csv 
curl --location --request GET 'https://harmor.osd.co.th/public/api/harmor/new/image/news/296c90cc-c49f-48b5-bfe8-408f8fac4518-1684291593606.jpg' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3MiOnsib3JnYW5pemF0aW9uSWQiOiJlZTY3MDQxMi1iYjcxLTRjN2EtYjkyOC05MTU4YzVkMjE3NmQiLCJ1c2VyQWNjZXNzIjpbeyJncm91cElkIjoiMTg0Y2Y2N2QtYzY4MS00M2FhLWFkMjctMmFmOWUwYmU5YWJkIiwiZ3JvdXBOYW1lIjoiYWRtaW5oYXJtb3IiLCJyb2xlcyI6WyJkdXR5ZGF5IiwiY3JlYXRldXNlcnMiLCJjcmVhdGVhZGRyZXNzIiwic2V0dGluZ2FkZHJlc3MiLCJhcHBvaW50bWVudCIsInZvbHVudGVlcnMiLCJjYXNlcmVwb3J0cyIsIm5ld3MiLCJkYXNoYm9hcmQiLCJxdWV1ZSIsImhvbWVfc2V0dGluZ3MiLCJzZXR0aW5nIl19XX0sImlhdCI6MTY4NjA2ODY5NCwiZXhwIjoxNjg2MDY4OTk0LCJhdWQiOiIyZTRkMWMxNy1hNGU2LTQwOWItOTYxOC0yOWExOWI4ZGU1Y2YiLCJpc3MiOiJodHRwOi8vbG9jYWxob3N0Iiwic3ViIjoiMjQwY2UyNDgtZGRjMi00Y2U3LWE1MjktMDI4MmFhZmZkODIzIn0.frvpnR6JmvhEzNGo7basu41QdQggK9DRPZEIAZBWUFoXoTxkDm_DxPaC0q4y7yN_mIne4ru6AYEbo2HPK2KqWEZ5Cg_u-3x3gPW4CzazS6iwBsIkTvr3JkkD6ttq7-QesVjEFOZbpGqQACD0Mxgxp_ea4daSbIv8iFZS6LmAqLPl2SerpEZJTwo70lZeMTk-A6qF5o9YKOtetpmsf_BG8m323Ttz5FK8r-jhOvtnl2iUhbURk2NGh_xX1XKiJg9vlzSKlS7tck50WozJk6GER_NsICPNas3kkwbrDL_vE9vuKt96s7a1Qut7D1kLf0qdH582TblWmrD3c_Qy1lddVA'
```

### สร้างข่าว
#### Example Curl
```csv 
curl --location --request POST 'http://localhost:4000/harmor/new' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3MiOnsib3JnYW5pemF0aW9uSWQiOiJlZTY3MDQxMi1iYjcxLTRjN2EtYjkyOC05MTU4YzVkMjE3NmQiLCJ1c2VyQWNjZXNzIjpbeyJncm91cElkIjoiMTg0Y2Y2N2QtYzY4MS00M2FhLWFkMjctMmFmOWUwYmU5YWJkIiwiZ3JvdXBOYW1lIjoiYWRtaW5oYXJtb3IiLCJyb2xlcyI6WyJkdXR5ZGF5IiwiY3JlYXRldXNlcnMiLCJjcmVhdGVhZGRyZXNzIiwic2V0dGluZ2FkZHJlc3MiLCJhcHBvaW50bWVudCIsInZvbHVudGVlcnMiLCJjYXNlcmVwb3J0cyIsIm5ld3MiLCJkYXNoYm9hcmQiLCJxdWV1ZSIsImhvbWVfc2V0dGluZ3MiLCJzZXR0aW5nIl19XX0sImlhdCI6MTY4NjA2ODY5NCwiZXhwIjoxNjg2MDY4OTk0LCJhdWQiOiIyZTRkMWMxNy1hNGU2LTQwOWItOTYxOC0yOWExOWI4ZGU1Y2YiLCJpc3MiOiJodHRwOi8vbG9jYWxob3N0Iiwic3ViIjoiMjQwY2UyNDgtZGRjMi00Y2U3LWE1MjktMDI4MmFhZmZkODIzIn0.frvpnR6JmvhEzNGo7basu41QdQggK9DRPZEIAZBWUFoXoTxkDm_DxPaC0q4y7yN_mIne4ru6AYEbo2HPK2KqWEZ5Cg_u-3x3gPW4CzazS6iwBsIkTvr3JkkD6ttq7-QesVjEFOZbpGqQACD0Mxgxp_ea4daSbIv8iFZS6LmAqLPl2SerpEZJTwo70lZeMTk-A6qF5o9YKOtetpmsf_BG8m323Ttz5FK8r-jhOvtnl2iUhbURk2NGh_xX1XKiJg9vlzSKlS7tck50WozJk6GER_NsICPNas3kkwbrDL_vE9vuKt96s7a1Qut7D1kLf0qdH582TblWmrD3c_Qy1lddVA' \
--header 'Content-Type: application/json' \
--data-raw '{
    "title": "string",
    "detail": "string"
}'
```

### upload image ข่าว
#### Example Curl
```csv 
curl --location --request GET 'http://localhost:4000/harmor/new/images' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3MiOnsib3JnYW5pemF0aW9uSWQiOiJlZTY3MDQxMi1iYjcxLTRjN2EtYjkyOC05MTU4YzVkMjE3NmQiLCJ1c2VyQWNjZXNzIjpbeyJncm91cElkIjoiMTg0Y2Y2N2QtYzY4MS00M2FhLWFkMjctMmFmOWUwYmU5YWJkIiwiZ3JvdXBOYW1lIjoiYWRtaW5oYXJtb3IiLCJyb2xlcyI6WyJkdXR5ZGF5IiwiY3JlYXRldXNlcnMiLCJjcmVhdGVhZGRyZXNzIiwic2V0dGluZ2FkZHJlc3MiLCJhcHBvaW50bWVudCIsInZvbHVudGVlcnMiLCJjYXNlcmVwb3J0cyIsIm5ld3MiLCJkYXNoYm9hcmQiLCJxdWV1ZSIsImhvbWVfc2V0dGluZ3MiLCJzZXR0aW5nIl19XX0sImlhdCI6MTY4NjA2ODY5NCwiZXhwIjoxNjg2MDY4OTk0LCJhdWQiOiIyZTRkMWMxNy1hNGU2LTQwOWItOTYxOC0yOWExOWI4ZGU1Y2YiLCJpc3MiOiJodHRwOi8vbG9jYWxob3N0Iiwic3ViIjoiMjQwY2UyNDgtZGRjMi00Y2U3LWE1MjktMDI4MmFhZmZkODIzIn0.frvpnR6JmvhEzNGo7basu41QdQggK9DRPZEIAZBWUFoXoTxkDm_DxPaC0q4y7yN_mIne4ru6AYEbo2HPK2KqWEZ5Cg_u-3x3gPW4CzazS6iwBsIkTvr3JkkD6ttq7-QesVjEFOZbpGqQACD0Mxgxp_ea4daSbIv8iFZS6LmAqLPl2SerpEZJTwo70lZeMTk-A6qF5o9YKOtetpmsf_BG8m323Ttz5FK8r-jhOvtnl2iUhbURk2NGh_xX1XKiJg9vlzSKlS7tck50WozJk6GER_NsICPNas3kkwbrDL_vE9vuKt96s7a1Qut7D1kLf0qdH582TblWmrD3c_Qy1lddVA'
```

## ประวัติการรักษา

### ประวัติการรักษา
filter if(status === 'done')
#### Example Curl
```csv 
curl --location --request GET 'http://localhost:4000/harmor/patients/findlistappointment' \
--header 'Authorization: Bearer Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3MiOnsib3JnYW5pemF0aW9uSWQiOiJlZTY3MDQxMi1iYjcxLTRjN2EtYjkyOC05MTU4YzVkMjE3NmQiLCJ1c2VyQWNjZXNzIjpbeyJncm91cElkIjoiMTg0Y2Y2N2QtYzY4MS00M2FhLWFkMjctMmFmOWUwYmU5YWJkIiwiZ3JvdXBOYW1lIjoiYWRtaW5oYXJtb3IiLCJyb2xlcyI6WyJkdXR5ZGF5IiwiY3JlYXRldXNlcnMiLCJjcmVhdGVhZGRyZXNzIiwic2V0dGluZ2FkZHJlc3MiLCJhcHBvaW50bWVudCIsInZvbHVudGVlcnMiLCJjYXNlcmVwb3J0cyIsIm5ld3MiLCJkYXNoYm9hcmQiLCJxdWV1ZSIsImhvbWVfc2V0dGluZ3MiLCJzZXR0aW5nIl19XX0sImlhdCI6MTY4NjE5NTk0NiwiZXhwIjoxNjg2MTk2MjQ2LCJhdWQiOiIyZTRkMWMxNy1hNGU2LTQwOWItOTYxOC0yOWExOWI4ZGU1Y2YiLCJpc3MiOiJodHRwOi8vbG9jYWxob3N0Iiwic3ViIjoiMjQwY2UyNDgtZGRjMi00Y2U3LWE1MjktMDI4MmFhZmZkODIzIn0.dfYgiDpmbfRcEW5R9AU63fTz-4om7xWFh4KLQxTHDKA7eGshewARzrA-gBY7-Gkn062NkEtZRuTL0Hp3d5LK_jVCfjd508h66bpZJBkeBxd0-DyZw-C5-YB2XFJZ1O4mnEw5__20W4z2nyWZxsTS3VjFD3r2uIrZepNKIvgxhb-8yOVg4XI8WmHxvqsdCm56aHqnkwkhyeBS_2aAkHuGPRHwWRD_gvTDQRPG-hO6O7obSi96DRbgs0pTq_KUs5UG4NCOOmTeR6_WNnqY6utiqZ621ywZ1Nyb562FcoAKKEBrBvAvKvaGEH6_4SBwlzHkf7IRFyqDUBemmXUuG5ckzA'
```


## ปุ่มลัด (เบอร์โทรฉุกเฉิน)
#### Example Curl
```csv 
curl --location --request GET 'http://localhost:4000/harmor/addresssetting/emergencynumber' \
--header 'Authorization: Bearer Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3MiOnsib3JnYW5pemF0aW9uSWQiOiJlZTY3MDQxMi1iYjcxLTRjN2EtYjkyOC05MTU4YzVkMjE3NmQiLCJ1c2VyQWNjZXNzIjpbeyJncm91cElkIjoiM2I5ODU3OWMtZGMzZS00ZGYzLWE4OWEtZTRlNGIyZDQ1ZGYxIiwiZ3JvdXBOYW1lIjoicGF0aWVudCIsInJvbGVzIjpbImFwcG9pbnRtZW50IiwiY2FzZXJlcG9ydHMiXX1dfSwiaWF0IjoxNjg2Mzk3NjI1LCJleHAiOjE2ODYzOTc5MjUsImF1ZCI6IjJlNGQxYzE3LWE0ZTYtNDA5Yi05NjE4LTI5YTE5YjhkZTVjZiIsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3QiLCJzdWIiOiI5ZTEzODQ1Yy01ZTZlLTQ4NjctYWY4ZC1hZDUyOThhZDE0ZTYifQ.WLIoggHW1NsXC-yV74cmUJqjQGyz7I9diKN1dz24h3WDeyQCJCDB2SA4eQ0vPLCmPo1852pQqklA2UEx9zfkSCkuen-KfJtNRRdU1eX87ykCYQztm-AyTYUcSVkF1grcUj4M1CVEU8KZLUbndGMr_J3iObJmMDT0nxf24NKPdOD5qy-x9GHRCdI3RJKmz4H57nssAzjsTjel2AR0ZeNfqnwcdFv-M7hSHZ_r4nzYFo6bGoCyaFm-fSw9hTMzrHfr33gQplKSLIk-wwfP8WVMFNWbFpubdR9F8t6QWPjmOnKZm6nAwYjP-oZ5nUhBW_RYGFbgMkVowBhJnLYrSVo7KQ'
```

## ข้อความ PDPA
#### Example Curl
```csv
curl 'http://localhost:4000/harmor/new/getPdpa' \
  -H 'Accept: application/json, text/plain, */*' \
  -H 'Accept-Language: en-US,en;q=0.9,th;q=0.8' \
  -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3MiOnsib3JnYW5pemF0aW9uSWQiOiJlZTY3MDQxMi1iYjcxLTRjN2EtYjkyOC05MTU4YzVkMjE3NmQiLCJ1c2VyQWNjZXNzIjpbeyJncm91cElkIjoiMTg0Y2Y2N2QtYzY4MS00M2FhLWFkMjctMmFmOWUwYmU5YWJkIiwiZ3JvdXBOYW1lIjoiYWRtaW5oYXJtb3IiLCJyb2xlcyI6WyJkdXR5ZGF5IiwiY3JlYXRldXNlcnMiLCJjcmVhdGVhZGRyZXNzIiwic2V0dGluZ2FkZHJlc3MiLCJhcHBvaW50bWVudCIsInZvbHVudGVlcnMiLCJjYXNlcmVwb3J0cyIsIm5ld3MiLCJkYXNoYm9hcmQiLCJxdWV1ZSIsImhvbWVfc2V0dGluZ3MiLCJzZXR0aW5nIl19XX0sImlhdCI6MTY4NzA4MDY0MiwiZXhwIjoxNjg3MDgwOTQyLCJhdWQiOiIyZTRkMWMxNy1hNGU2LTQwOWItOTYxOC0yOWExOWI4ZGU1Y2YiLCJpc3MiOiJodHRwOi8vbG9jYWxob3N0Iiwic3ViIjoiMjQwY2UyNDgtZGRjMi00Y2U3LWE1MjktMDI4MmFhZmZkODIzIn0.W18-u-mY5MZ1cjniUySp8Q_xV3RqPJtheYlzcxHSDe7QTvawPC_JXjHO52dDfPAwce5O60qJ4lBcRv0dMsfe-fNk13JejrWh2blvMxW4BCprLLo6c304uZl2Jh_3VASNExy7zunHtNFXLsZu25WSWgKFtohXqctshaSDl0-GYaIrFTDnAOh9STVm9uGUpwA4cRxrsT-2cx19D7Y8SMuXtW_YWlVzyqkX2QOaw3WiK1ku0MPOna5rg1Ffhee-O7uKhWm3gCYNnzvA6X5sIoy28eKpoEJN0nAs72w1tCb-1pampHo56Kh2XZSKQFLEzs-KKc6jvcEbUlJM3oXrJPgBlA' \
  -H 'Connection: keep-alive' \
  -H 'If-None-Match: W/"15742-dkLb0e8P161WrI8f2BPOiHpfeBA"' \
  -H 'Origin: http://localhost:3000' \
  -H 'Referer: http://localhost:3000/' \
  -H 'Sec-Fetch-Dest: empty' \
  -H 'Sec-Fetch-Mode: cors' \
  -H 'Sec-Fetch-Site: same-site' \
  -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36' \
  -H 'sec-ch-ua: "Not.A/Brand";v="8", "Chromium";v="114", "Google Chrome";v="114"' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'sec-ch-ua-platform: "macOS"' \
  --compressed
```

## masterdata 

### Get Treatment Rights

#### Example Curl
```csv 
curl --location --request GET 'http://localhost:4000/harmor/masterdata'
```

## QR Code 

### QR-Code

#### Example Curl
```csv 
curl --location --request GET 'http://localhost:4000/harmor/patients/findhealcenter'
```


