publicCarePlancreateFormPost
Creates a care plan for a patient. Requires the patient's MPIID and the care plan TemplateID. The care plan will be saved in Draft-Incomplete status if there are required questions, and Draft status if there are not.
/public-care-plan/$create-form
Usage and SDK Samples
curl -X POST\
-H "Accept: application/vnd.intersystems.com.hs.hscc.careplan.v1+json,application/json,default"\
-H "Content-Type: application/vnd.intersystems.com.hs.hscc.careplan.v1+json"\
"//public-care-plan/$create-form"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicCarePlanApi;
import java.io.File;
import java.util.*;
public class PublicCarePlanApiExample {
public static void main(String[] args) {
PublicCarePlanApi apiInstance = new PublicCarePlanApi();
Create-form-request_input body = ; // Create-form-request_input |
try {
create-form-response_output result = apiInstance.publicCarePlancreateFormPost(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PublicCarePlanApi#publicCarePlancreateFormPost");
e.printStackTrace();
}
}
}
import io.swagger.client.api.PublicCarePlanApi;
public class PublicCarePlanApiExample {
public static void main(String[] args) {
PublicCarePlanApi apiInstance = new PublicCarePlanApi();
Create-form-request_input body = ; // Create-form-request_input |
try {
create-form-response_output result = apiInstance.publicCarePlancreateFormPost(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PublicCarePlanApi#publicCarePlancreateFormPost");
e.printStackTrace();
}
}
}
Create-form-request_input *body = ; //
PublicCarePlanApi *apiInstance = [[PublicCarePlanApi alloc] init];
[apiInstance publicCarePlancreateFormPostWith:body
completionHandler: ^(create-form-response_output output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var CareCommunityPublicApi_ = require('care_community_public_api_');
var api = new CareCommunityPublicApi_.PublicCarePlanApi()
var body = ; // {{Create-form-request_input}}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.publicCarePlancreateFormPost(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class publicCarePlancreateFormPostExample
{
public void main()
{
var apiInstance = new PublicCarePlanApi();
var body = new Create-form-request_input(); // Create-form-request_input |
try
{
create-form-response_output result = apiInstance.publicCarePlancreateFormPost(body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling PublicCarePlanApi.publicCarePlancreateFormPost: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiPublicCarePlanApi();
$body = ; // Create-form-request_input |
try {
$result = $api_instance->publicCarePlancreateFormPost($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PublicCarePlanApi->publicCarePlancreateFormPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicCarePlanApi;
my $api_instance = WWW::SwaggerClient::PublicCarePlanApi->new();
my $body = WWW::SwaggerClient::Object::Create-form-request_input->new(); # Create-form-request_input |
eval {
my $result = $api_instance->publicCarePlancreateFormPost(body => $body);
print Dumper($result);
};
if ($@) {
warn "Exception when calling PublicCarePlanApi->publicCarePlancreateFormPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.PublicCarePlanApi()
body = # Create-form-request_input |
try:
api_response = api_instance.public_care_plancreate_form_post(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling PublicCarePlanApi->publicCarePlancreateFormPost: %s\n" % e)
Parameters
Name | Description |
---|---|
body * |