###cariidencounter
GET https://wssatusehat.dv/satusehatservice.php?req=cariidencounter&id=4f735a03-128b-464d-bf91-e6eacdf1c38f

###carisubjectencounter
GET https://wssatusehat.dv/satusehatservice.php?req=carisubjectencounter&subject=100000030009

###tambahencounter
POST https://wssatusehat.dv/satusehatservice.php?req=tambahencounter
Content-Type: application/json

{
	"resourceType": "Encounter",
	"status": "arrived",
	"class": {
		"system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
		"code": "AMB",
		"display": "ambulatory"
	},
	"subject": {
		"reference": "Patient/100000030009",
		"display": "Budi Santoso"
	},
	"participant": [
		{
			"type": [
				{
					"coding": [
						{
							"system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
							"code": "ATND",
							"display": "attender"
						}
					]
				}
			],
			"individual": {
				"reference": "Practitioner/N10000001",
				"display": "Dokter Bronsig"
			}
		}
	],
	"period": {
		"start": "2022-06-14T07:00:00+07:00"
	},
	"location": [
		{
			"location": {
				"reference": "Location/b017aa54-f1df-4ec2-9d84-8823815d7228",
				"display": "Ruang 1A, Poliklinik Bedah Rawat Jalan Terpadu, Lantai 2, Gedung G"
			}
		}
	],
	"statusHistory": [
		{
			"status": "arrived",
			"period": {
				"start": "2022-06-14T07:00:00+07:00"
			}
		}
	],
	"serviceProvider": {
		"reference": "Organization/10000004"
	},
	"identifier": [
		{
			"system": "http://sys-ids.kemkes.go.id/encounter/10000004",
			"value": "P20240001"
		}
	]
}

###ubahencounter inprogres
POST https://wssatusehat.dv/satusehatservice.php?req=ubahencounter&id=4f735a03-128b-464d-bf91-e6eacdf1c38f
Content-Type: application/json

{
	"resourceType": "Encounter",
	"id": "3dedcec9-885d-435e-9ac5-58853cb216bb",
	"identifier": [
		{
			"system": "http://sys-ids.kemkes.go.id/encounter/1000004",
			"value": "P20240001"
		}
	],
	"status": "in-progress",
	"class": {
		"system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
		"code": "AMB",
		"display": "ambulatory"
	},
	"subject": {
		"reference": "Patient/100000030009",
		"display": "Budi Santoso"
	},
	"participant": [
		{
			"type": [
				{
					"coding": [
						{
							"system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
							"code": "ATND",
							"display": "attender"
						}
					]
				}
			],
			"individual": {
				"reference": "Practitioner/N10000001",
				"display": "Dokter Bronsig"
			}
		}
	],
	"period": {
		"start": "2022-06-14T07:00:00+07:00",
		"end": "2022-06-14T09:00:00+07:00"
	},
	"location": [
		{
			"location": {
				"reference": "Location/ef011065-38c9-46f8-9c35-d1fe68966a3e",
				"display": "Ruang 1A, Poliklinik Rawat Jalan"
			}
		}
	],
	"statusHistory": [
		{
			"status": "arrived",
			"period": {
				"start": "2022-06-14T07:00:00+07:00",
				"end": "2022-06-14T08:00:00+07:00"
			}
		},
		{
			"status": "in-progress",
			"period": {
				"start": "2022-06-14T08:00:00+07:00",
				"end": "2022-06-14T09:00:00+07:00"
			}
		}
	],
	"serviceProvider": {
		"reference":"Organization/10000004"
	}
}


###ubahencounter dischargeDisposition
POST https://wssatusehat.dv/satusehatservice.php?req=ubahencounter&id=4f735a03-128b-464d-bf91-e6eacdf1c38f
Content-Type: application/json

{
	"resourceType": "Encounter",
	"id": "3dedcec9-885d-435e-9ac5-58853cb216bb",
	"identifier": [
		{
			"system": "http://sys-ids.kemkes.go.id/encounter/1000004",
			"value": "P20240001"
		}
	],
	"status": "in-progress",
	"class": {
		"system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
		"code": "AMB",
		"display": "ambulatory"
	},
	"subject": {
		"reference": "Patient/100000030009",
		"display": "Budi Santoso"
	},
	"participant": [
		{
			"type": [
				{
					"coding": [
						{
							"system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
							"code": "ATND",
							"display": "attender"
						}
					]
				}
			],
			"individual": {
				"reference": "Practitioner/N10000001",
				"display": "Dokter Bronsig"
			}
		}
	],
	"period": {
		"start": "2022-06-14T07:00:00+07:00",
		"end": "2022-06-14T09:00:00+07:00"
	},
	"location": [
		{
			"location": {
				"reference": "Location/ef011065-38c9-46f8-9c35-d1fe68966a3e",
				"display": "Ruang 1A, Poliklinik Rawat Jalan"
			}
		}
	],
	"statusHistory": [
		{
			"status": "arrived",
			"period": {
				"start": "2022-06-14T07:00:00+07:00",
				"end": "2022-06-14T08:00:00+07:00"
			}
		},
		{
			"status": "in-progress",
			"period": {
				"start": "2022-06-14T08:00:00+07:00",
				"end": "2022-06-14T09:00:00+07:00"
			}
		}
	],
	"hospitalization": {
		"dischargeDisposition": {
			"coding": [
				{
					"system": "http://terminology.hl7.org/CodeSystem/discharge-disposition",
					"code": "home",
					"display": "Home"
				}
			],
			"text" : "Anjuran dokter untuk pulang dan kontrol kembali 1 bulan setelah minum obat"
		}
	},
	"serviceProvider": {
		"reference": "Organization/10000004"
	}
}

###ubahpartencounter
POST https://wssatusehat.dv/satusehatservice.php?req=ubahpartencounter&id=4f735a03-128b-464d-bf91-e6eacdf1c38f
Content-Type: application/json

[
	{
		"op" : "replace",
		"path" : "/statusHistory/0/period/start",
		"value" : "2022-06-17T07:00:00+07:00"
	}
]