eHealth Infrastructure (v2020.4)

StructureDefinition: ehealth-relatedperson - Operation examples

POST [base]/RelatedPerson

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJxYWFsWjNuOGV6NW5NSkt2b2hrNWdVaW82QXc5cE0tbTRJaFFRcjdyS29zIn0.eyJqdGkiOiIwNDg4Y2QxMy02MWJiLTQ0NTctYjFkMS03MDk4MGE1ZWU4NTUiLCJleHAiOjE1NzMwNDczNzUsIm5iZiI6MCwiaWF0IjoxNTczMDQ3MDc1LCJpc3MiOiJodHRwczovL3NhbWwuZnV0LnRyaWZvcmsuY29tL2F1dGgvcmVhbG1zL25lbWxvZ2luIiwiYXVkIjoiYWNjb3VudCIsInN1YiI6ImI2NmY1MzdiLTQ3MzktNDY2Mi04ZGIxLTNjOGZkOWVlNmI4ZCIsInR5cCI6IkJlYXJlciIsImF6cCI6InBhdGllbnRfbW9jayIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6IjM3Y2MzN2M4LWViNWUtNGRlOS04Y2U3LTgyMjk4YTJjMDZlMiIsImFjciI6IjEiLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsib2ZmbGluZV9hY2Nlc3MiLCJ1bWFfYXV0aG9yaXphdGlvbiJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoicHJvZmlsZSBwYXRpZW50X2N1c3RvbSBlbWFpbCIsImVtYWlsX3ZlcmlmaWVkIjp0cnVlLCJ1c2VyX3R5cGUiOiJQQVRJRU5UIiwidXNlcl9pZCI6Imh0dHA6Ly9wYXRpZW50LmVoZWFsdGgtcHVibGljL2ZoaXIvUGF0aWVudC8yNTIiLCJjb250ZXh0Ijp7InBhdGllbnRfaWQiOiJodHRwOi8vcGF0aWVudC5laGVhbHRoLXB1YmxpYy9maGlyL1BhdGllbnQvMjUyIn0sInByZWZlcnJlZF91c2VybmFtZSI6ImN1Y3VtYmVyX3BhdGllbnQxIn0.pVP8-k1qlXE63hk9rlijkUF__uxQEuizJU9hcSomB_lDIubuN_qFa1bKRN9Ek7HW8KlBoLRcHb2w-v36g9fsNXaIHBD-xV3td1ZPy5csix0-qAOYc0SztBELLbfqDOgykY5AGf1gVCGCVDeH0e6003E8hPPJTrLmRBET7QnjcZ6NEvvlFOuwW7icTkOyLNYTAUH2bNBM7hzx52O96AHNXkb1AGaJ5VVydqj_UlTQbgC8SZpMPkURBF4uRYzgPHjXl7Hi8OxbhrEETe1fgJRz3ldZOrWyV83ZaQIgDfCvZqBxuNa_mY3bPhtd7coArQnEM9zc30pFbOiPJgnZ_iWvxw
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/4.0.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Content-Type: application/fhir+json; charset=UTF-8

Body:

{
  "resourceType" : "RelatedPerson",
  "meta" : {
    "profile" : [ "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-relatedperson" ]
  },
  "extension" : [ {
    "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-patient-contactnote",
    "valueString" : "This is a contact note"
  } ],
  "patient" : {
    "reference" : "http://localhost:8080/fhir/Patient/452"
  },
  "name" : [ {
    "use" : "official",
    "family" : "Test",
    "given" : [ "RelatedPerson" ]
  } ],
  "address" : [ {
    "extension" : [ {
      "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-municipality-code",
      "valueCoding" : {
        "system" : "http://danmarksadresser.dk/kommunekode",
        "code" : "0101"
      }
    }, {
      "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-regional-subdivision-code",
      "valueCodeableConcept" : {
        "coding" : [ {
          "system" : "https://www.iso.org/obp/ui/#iso:code:3166:DK",
          "code" : "DK-85"
        } ]
      }
    } ],
    "use" : "home",
    "line" : [ "xLypEYGvej 7" ],
    "city" : "Aarhus",
    "postalCode" : "8000",
    "country" : "Danmark"
  } ]
}

Response

{
  "resourceType" : "RelatedPerson",
  "id" : "616",
  "meta" : {
    "versionId" : "1",
    "lastUpdated" : "2019-11-06T14:31:32.027+01:00",
    "profile" : [ "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-relatedperson" ]
  },
  "extension" : [ {
    "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-patient-contactnote",
    "valueString" : "This is a contact note"
  } ],
  "patient" : {
    "reference" : "Patient/452"
  },
  "name" : [ {
    "use" : "official",
    "family" : "Test",
    "given" : [ "RelatedPerson" ]
  } ],
  "address" : [ {
    "extension" : [ {
      "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-municipality-code",
      "valueCoding" : {
        "system" : "http://danmarksadresser.dk/kommunekode",
        "code" : "0101"
      }
    }, {
      "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-regional-subdivision-code",
      "valueCodeableConcept" : {
        "coding" : [ {
          "system" : "https://www.iso.org/obp/ui/#iso:code:3166:DK",
          "code" : "DK-85"
        } ]
      }
    } ],
    "use" : "home",
    "line" : [ "xLypEYGvej 7" ],
    "city" : "Aarhus",
    "postalCode" : "8000",
    "country" : "Danmark"
  } ]
}

PUT [base]/RelatedPerson/616

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJxYWFsWjNuOGV6NW5NSkt2b2hrNWdVaW82QXc5cE0tbTRJaFFRcjdyS29zIn0.eyJqdGkiOiIwNDg4Y2QxMy02MWJiLTQ0NTctYjFkMS03MDk4MGE1ZWU4NTUiLCJleHAiOjE1NzMwNDczNzUsIm5iZiI6MCwiaWF0IjoxNTczMDQ3MDc1LCJpc3MiOiJodHRwczovL3NhbWwuZnV0LnRya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URBF4uRYzgPHjXl7Hi8OxbhrEETe1fgJRz3ldZOrWyV83ZaQIgDfCvZqBxuNa_mY3bPhtd7coArQnEM9zc30pFbOiPJgnZ_iWvxw
If-Match: "1"
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/4.0.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Content-Type: application/fhir+json; charset=UTF-8

Body:

{
  "resourceType" : "RelatedPerson",
  "id" : "616",
  "meta" : {
    "versionId" : "1",
    "lastUpdated" : "2019-11-06T14:31:32.027+01:00",
    "profile" : [ "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-relatedperson" ]
  },
  "extension" : [ {
    "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-patient-contactnote",
    "valueString" : "new contact note"
  } ],
  "patient" : {
    "reference" : "Patient/452"
  },
  "name" : [ {
    "use" : "official",
    "family" : "Test",
    "given" : [ "RelatedPerson" ]
  } ],
  "address" : [ {
    "extension" : [ {
      "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-municipality-code",
      "valueCoding" : {
        "system" : "http://danmarksadresser.dk/kommunekode",
        "code" : "0101"
      }
    }, {
      "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-regional-subdivision-code",
      "valueCodeableConcept" : {
        "coding" : [ {
          "system" : "https://www.iso.org/obp/ui/#iso:code:3166:DK",
          "code" : "DK-85"
        } ]
      }
    } ],
    "use" : "home",
    "line" : [ "xLypEYGvej 7" ],
    "city" : "Aarhus",
    "postalCode" : "8000",
    "country" : "Danmark"
  } ]
}

Response

{
  "resourceType" : "RelatedPerson",
  "id" : "616",
  "meta" : {
    "versionId" : "2",
    "lastUpdated" : "2019-11-06T14:31:32.312+01:00",
    "profile" : [ "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-relatedperson" ]
  },
  "extension" : [ {
    "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-patient-contactnote",
    "valueString" : "new contact note"
  } ],
  "patient" : {
    "reference" : "Patient/452"
  },
  "name" : [ {
    "use" : "official",
    "family" : "Test",
    "given" : [ "RelatedPerson" ]
  } ],
  "address" : [ {
    "extension" : [ {
      "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-municipality-code",
      "valueCoding" : {
        "system" : "http://danmarksadresser.dk/kommunekode",
        "code" : "0101"
      }
    }, {
      "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-regional-subdivision-code",
      "valueCodeableConcept" : {
        "coding" : [ {
          "system" : "https://www.iso.org/obp/ui/#iso:code:3166:DK",
          "code" : "DK-85"
        } ]
      }
    } ],
    "use" : "home",
    "line" : [ "xLypEYGvej 7" ],
    "city" : "Aarhus",
    "postalCode" : "8000",
    "country" : "Danmark"
  } ]
}

PATCH [base]/RelatedPerson/279

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJxYWFsWjNuOGV6NW5NSkt2b2hrNWdVaW82QXc5cE0tbTRJaFFRcjdyS29zIn0.eyJqdGkiOiJjOWJlYWNkOC1kMzk2LTRmMTItOTg4Yy05ODRkMTdiMWM0YTEiLCJleHAiOjE1NzMxMjA3MjgsIm5iZiI6MCwiaWF0IjoxNTczMTIwNDI4LCJpc3MiOiJodHRwczovL3NhbWwuZnV0LnRyaWZvcmsuY29tL2F1dGgvcmVhbG1zL25lbWxvZ2luIiwiYXVkIjoiYWNjb3VudCIsInN1YiI6IjU3NzY2YjY0LTc0YWItNDJkNC1hYzJmLTg2MDFkYjBmNGMxMyIsInR5cCI6IkJlYXJlciIsImF6cCI6InBhdGllbnRfbW9jayIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImVjYTRhY2M0LTFlNWQtNDAzNS04NTJjLTk0NjgzYTNlMjVmZCIsImFjciI6IjEiLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsib2ZmbGluZV9hY2Nlc3MiLCJ1bWFfYXV0aG9yaXphdGlvbiJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoicHJvZmlsZSBlbWFpbCBwYXRpZW50X2N1c3RvbSIsImVtYWlsX3ZlcmlmaWVkIjp0cnVlLCJ1c2VyX3R5cGUiOiJQQVRJRU5UIiwidXNlcl9pZCI6Imh0dHA6Ly9wYXRpZW50LmVoZWFsdGgtcHVibGljL2ZoaXIvUGF0aWVudC8yNTIiLCJjb250ZXh0Ijp7InBhdGllbnRfaWQiOiJodHRwOi8vcGF0aWVudC5laGVhbHRoLXB1YmxpYy9maGlyL1BhdGllbnQvMjUyIn0sInByZWZlcnJlZF91c2VybmFtZSI6ImN1Y3VtYmVyX3BhdGllbnQxIn0.YmmNIEFLlL82WhIKqLrd5-iRN-mMFniySzWm5vdY_rwqOIKktIxzU1IN9di9hkERhxfpaHrGOi3566Nx_AQRIp1wTQRmgqUwRqOQU9qK1jAktRff_OUYyXTXqOIwcx4w_2zKnk_DOsJZT7UWhe7i-7KuMLghA5EQSbKrpmohsewKeUlVheQJ9IBHKKPOUhL_hMrk09mePvjqaMW_ICSMfnoOeFnbl376H67lbEmP6PFbn-cLTeQ9yMsCjPlriMfYBElUwpd7HLHADCUB5rU0jykVhkJd5w_TpMKYsPXQTa_zpZz-v53OMgyue79jsw7bWhkMk8qS4s7ay3My7toq9w
Accept: application/fhir+xml;q=1.0, application/fhir+json;q=1.0, application/xml+fhir;q=0.9, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/4.0.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Content-Type: application/json-patch+json; charset=UTF-8

Body:

[ {
  "op" : "add",
  "path" : "/extension",
  "value" : [ {
    "valueString" : "patch contact note",
    "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-patient-contactnote"
  } ]
} ]

Response

{
  "resourceType" : "RelatedPerson",
  "id" : "279",
  "meta" : {
    "extension" : [ {
      "url" : "http://hapifhir.io/fhir/StructureDefinition/resource-meta-source",
      "valueUri" : "#9e1752aa175eb23e"
    } ],
    "versionId" : "3",
    "lastUpdated" : "2019-11-07T10:54:03.529+01:00",
    "profile" : [ "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-relatedperson" ]
  },
  "extension" : [ {
    "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-patient-contactnote",
    "valueString" : "patch contact note"
  } ],
  "patient" : {
    "reference" : "Patient/257"
  },
  "name" : [ {
    "use" : "official",
    "family" : "Test",
    "given" : [ "RelatedPerson" ]
  } ],
  "address" : [ {
    "extension" : [ {
      "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-municipality-code",
      "valueCoding" : {
        "system" : "http://danmarksadresser.dk/kommunekode",
        "code" : "0101"
      }
    }, {
      "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-regional-subdivision-code",
      "valueCodeableConcept" : {
        "coding" : [ {
          "system" : "https://www.iso.org/obp/ui/#iso:code:3166:DK",
          "code" : "DK-85"
        } ]
      }
    } ],
    "use" : "home",
    "line" : [ "viZXzunvej 7" ],
    "city" : "Aarhus",
    "postalCode" : "8000",
    "country" : "Danmark"
  } ]
}

GET [base]/RelatedPerson?patient=http%3A%2F%2Flocalhost%3A8080%2Ffhir%2FPatient%2F257&_sort=-_id

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJxYWFsWjNuOGV6NW5NSkt2b2hrNWdVaW82QXc5cE0tbTRJaFFRcjdyS29zIn0.eyJqdGkiOiJiYzIyNmNmNS1lZjg1LTRjNjktYTQ2YS00YWRhYTE1NjZhMjEiLCJleHAiOjE1NzMxMjMwNDMsIm5i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Dl9rXydMVb3COlikrWCRAOSm-Ui52b6XmkMmcNkUyGhrpl-nDoundhfwz1GLWi_cUpt16ALCwSlwmqNQDsXky7xInS3R0chYp-FAqU5QokUPJrzOjF2q_4MWrYbMe1PZS028wl8LCQkJKL19ygv27BLVDT0OSwZs-DzvzhMRw
Accept: application/fhir+xml;q=1.0, application/fhir+json;q=1.0, application/xml+fhir;q=0.9, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/4.0.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip

Body:


Response

{
  "resourceType" : "Bundle",
  "id" : "5533d5cb-630e-487e-80a9-adc384ca3cc6",
  "meta" : {
    "lastUpdated" : "2019-11-07T11:32:38.348+01:00"
  },
  "type" : "searchset",
  "total" : 1,
  "link" : [ {
    "relation" : "self",
    "url" : "http://localhost:8080/fhir/RelatedPerson?_sort=-_id&patient=http%3A%2F%2Flocalhost%3A8080%2Ffhir%2FPatient%2F257"
  } ],
  "entry" : [ {
    "fullUrl" : "http://localhost:8080/fhir/RelatedPerson/296",
    "resource" : {
      "resourceType" : "RelatedPerson",
      "id" : "296",
      "meta" : {
        "extension" : [ {
          "url" : "http://hapifhir.io/fhir/StructureDefinition/resource-meta-source",
          "valueUri" : "#6db2de84ce489a4e"
        } ],
        "versionId" : "3",
        "lastUpdated" : "2019-11-07T11:32:38.135+01:00",
        "profile" : [ "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-relatedperson" ]
      },
      "extension" : [ {
        "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-patient-contactnote",
        "valueString" : "patch contact note"
      } ],
      "patient" : {
        "reference" : "Patient/257"
      },
      "name" : [ {
        "use" : "official",
        "family" : "Test",
        "given" : [ "RelatedPerson" ]
      } ],
      "address" : [ {
        "extension" : [ {
          "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-municipality-code",
          "valueCoding" : {
            "system" : "http://danmarksadresser.dk/kommunekode",
            "code" : "0101"
          }
        }, {
          "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-regional-subdivision-code",
          "valueCodeableConcept" : {
            "coding" : [ {
              "system" : "https://www.iso.org/obp/ui/#iso:code:3166:DK",
              "code" : "DK-85"
            } ]
          }
        } ],
        "use" : "home",
        "line" : [ "jMVCPwhvej 7" ],
        "city" : "Aarhus",
        "postalCode" : "8000",
        "country" : "Danmark"
      } ]
    },
    "search" : {
      "mode" : "match"
    }
  } ]
}

DELETE [base]/RelatedPerson/616

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJxYWFsWjNuOGV6NW5NSkt2b2hrNWdVaW82QXc5cE0tbTRJaFFRcjdyS29zIn0.eyJqdGkiOiIwNDg4Y2QxMy02MWJiLTQ0NTctYjFkMS03MDk4MGE1ZWU4NTUiLCJleHAiOjE1NzMwNDczNzUsIm5iZiI6MCwiaWF0IjoxNTczMDQ3MDc1LCJpc3MiOiJodHRwczovL3NhbWwuZnV0LnRyaWZvcmsuY29tL2F1dGgvcmVhbG1zL25lbWxvZ2luIiwiYXVkIjoiYWNjb3VudCIsInN1YiI6ImI2NmY1MzdiLTQ3MzktNDY2Mi04ZGIxLTNjOGZkOWVlNmI4ZCIsInR5cCI6IkJlYXJlciIsImF6cCI6InBhdGllbnRfbW9jayIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6IjM3Y2MzN2M4LWViNWUtNGRlOS04Y2U3LTgyMjk4YTJjMDZlMiIsImFjciI6IjEiLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsib2ZmbGluZV9hY2Nlc3MiLCJ1bWFfYXV0aG9yaXphdGlvbiJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoicHJvZmlsZSBwYXRpZW50X2N1c3RvbSBlbWFpbCIsImVtYWlsX3ZlcmlmaWVkIjp0cnVlLCJ1c2VyX3R5cGUiOiJQQVRJRU5UIiwidXNlcl9pZCI6Imh0dHA6Ly9wYXRpZW50LmVoZWFsdGgtcHVibGljL2ZoaXIvUGF0aWVudC8yNTIiLCJjb250ZXh0Ijp7InBhdGllbnRfaWQiOiJodHRwOi8vcGF0aWVudC5laGVhbHRoLXB1YmxpYy9maGlyL1BhdGllbnQvMjUyIn0sInByZWZlcnJlZF91c2VybmFtZSI6ImN1Y3VtYmVyX3BhdGllbnQxIn0.pVP8-k1qlXE63hk9rlijkUF__uxQEuizJU9hcSomB_lDIubuN_qFa1bKRN9Ek7HW8KlBoLRcHb2w-v36g9fsNXaIHBD-xV3td1ZPy5csix0-qAOYc0SztBELLbfqDOgykY5AGf1gVCGCVDeH0e6003E8hPPJTrLmRBET7QnjcZ6NEvvlFOuwW7icTkOyLNYTAUH2bNBM7hzx52O96AHNXkb1AGaJ5VVydqj_UlTQbgC8SZpMPkURBF4uRYzgPHjXl7Hi8OxbhrEETe1fgJRz3ldZOrWyV83ZaQIgDfCvZqBxuNa_mY3bPhtd7coArQnEM9zc30pFbOiPJgnZ_iWvxw
Accept: application/fhir+xml;q=1.0, application/fhir+json;q=1.0, application/xml+fhir;q=0.9, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/4.0.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip

Body:


Response

{
  "resourceType" : "OperationOutcome",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 12ms</pre></td>\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t</tr>\r\n\t\t</table>\r\n\t</div>"
  },
  "issue" : [ {
    "severity" : "information",
    "code" : "informational",
    "diagnostics" : "Successfully deleted 1 resource(s) in 12ms"
  } ]
}