{
	"info": {
		"_postman_id": "8d13c580-885c-43b6-b34e-297a35ff038a",
		"name": "FHIR BPR",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "METADATA",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Accept",
						"value": "application/fhir+json",
						"type": "text"
					}
				],
				"url": {
					"raw": "https://fhir.cens.cl/baseR4/metadata",
					"protocol": "https",
					"host": [
						"fhir",
						"cens",
						"cl"
					],
					"path": [
						"baseR4",
						"metadata"
					]
				}
			},
			"response": []
		},
		{
			"name": "CREAR-PACIENTE",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/fhir+json",
						"type": "text"
					},
					{
						"key": "Accept",
						"value": "application/fhir+json",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"resourceType\": \"Patient\",\n    \"identifier\": [\n        {\n            \"use\": \"official\",\n            \"value\": \"13.456.567-3\",\n            \"system\": \"http://registrocivil.cl/RUT\"\n        }\n    ],\n    \"active\": true,\n    \"name\": [\n        {\n            \"use\": \"official\",\n            \"family\": \"Perez\",\n            \"given\": [\n                \"Juan\"\n            ]\n        }\n    ],\n    \"gender\": \"male\"\n}"
				},
				"url": {
					"raw": "https://fhir.cens.cl/baseR4/Patient",
					"protocol": "https",
					"host": [
						"fhir",
						"cens",
						"cl"
					],
					"path": [
						"baseR4",
						"Patient"
					]
				}
			},
			"response": []
		},
		{
			"name": "OBTENER-PACIENTE JSON",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Accept",
						"value": "application/fhir+json",
						"type": "text"
					}
				],
				"url": {
					"raw": "https://fhir.cens.cl/baseR4/Patient/171492",
					"protocol": "https",
					"host": [
						"fhir",
						"cens",
						"cl"
					],
					"path": [
						"baseR4",
						"Patient",
						"171492"
					]
				}
			},
			"response": []
		},
		{
			"name": "OBTENER-PACIENTE XML",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Accept",
						"type": "text",
						"value": "application/fhir+xml"
					}
				],
				"url": {
					"raw": "https://fhir.cens.cl/baseR4/Patient/171491",
					"protocol": "https",
					"host": [
						"fhir",
						"cens",
						"cl"
					],
					"path": [
						"baseR4",
						"Patient",
						"171491"
					]
				}
			},
			"response": []
		},
		{
			"name": "ACTUALIZAR-PACIENTE",
			"request": {
				"method": "PUT",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/fhir+json",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"resourceType\": \"Patient\",\n    \"id\": \"171492\",\n    \"identifier\": [\n        {\n            \"use\": \"official\",\n            \"value\": \"13.456.567-3\",\n            \"system\": \"http://registrocivil.cl/RUT\"\n        }\n    ],\n    \"active\": true,\n    \"name\": [\n        {\n            \"use\": \"official\",\n            \"family\": \"Perez\",\n            \"given\": [\n                \"Juan\",\n                \"Alejandro\"\n            ]\n        }\n    ],\n    \"gender\": \"male\"\n}"
				},
				"url": {
					"raw": "https://fhir.cens.cl/baseR4/Patient/171492",
					"protocol": "https",
					"host": [
						"fhir",
						"cens",
						"cl"
					],
					"path": [
						"baseR4",
						"Patient",
						"171492"
					]
				}
			},
			"response": []
		},
		{
			"name": "ACTUALIZAR-PACIENTE PATCH",
			"request": {
				"method": "PATCH",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json-patch+json",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "[\n  { \"op\": \"remove\", \"path\": \"/name/0/given/1\"}\n]\n"
				},
				"url": {
					"raw": "https://fhir.cens.cl/baseR4/Patient/171492",
					"protocol": "https",
					"host": [
						"fhir",
						"cens",
						"cl"
					],
					"path": [
						"baseR4",
						"Patient",
						"171492"
					]
				}
			},
			"response": []
		},
		{
			"name": "ELIMINAR-PACIENTE JSON",
			"request": {
				"method": "DELETE",
				"header": [
					{
						"key": "Accept",
						"value": "application/fhir+json",
						"type": "text"
					}
				],
				"url": {
					"raw": "https://fhir.cens.cl/baseR4/Patient/171492",
					"protocol": "https",
					"host": [
						"fhir",
						"cens",
						"cl"
					],
					"path": [
						"baseR4",
						"Patient",
						"171492"
					]
				}
			},
			"response": []
		},
		{
			"name": "OBTENER-Hitorial-PACIENTE",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Accept",
						"type": "text",
						"value": "application/fhir+json"
					}
				],
				"url": {
					"raw": "https://fhir.cens.cl/baseR4/Patient/171492/_history",
					"protocol": "https",
					"host": [
						"fhir",
						"cens",
						"cl"
					],
					"path": [
						"baseR4",
						"Patient",
						"171492",
						"_history"
					]
				}
			},
			"response": []
		},
		{
			"name": "BUSQUEDA",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Accept",
						"value": "application/fhir+json",
						"type": "text"
					}
				],
				"url": {
					"raw": "https://fhir.cens.cl/baseR4/Patient?gender=male",
					"protocol": "https",
					"host": [
						"fhir",
						"cens",
						"cl"
					],
					"path": [
						"baseR4",
						"Patient"
					],
					"query": [
						{
							"key": "gender",
							"value": "male"
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "BUSQUEDA OBSERVACIONES DE PACIENTE",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Accept",
						"type": "text",
						"value": "application/fhir+json"
					}
				],
				"url": {
					"raw": "https://fhir.cens.cl/baseR4/Observation?patient=PAT-003",
					"protocol": "https",
					"host": [
						"fhir",
						"cens",
						"cl"
					],
					"path": [
						"baseR4",
						"Observation"
					],
					"query": [
						{
							"key": "patient",
							"value": "PAT-003"
						}
					]
				}
			},
			"response": []
		}
	]
}