Create Contract

POST {{fhir_url}}/Contract

Request Body

{"resourceType"=>"Contract", "id"=>"C-123", "text"=>{"status"=>"generated", "div"=>"<div xmlns=\"http://www.w3.org/1999/xhtml\">A human-readable rendering of the contract</div>"}, "identifier"=>[{"system"=>"http://happyvalley.com/contract", "value"=>"12347"}], "term"=>[{"offer"=>{"text"=>"Can't refuse"}, "asset"=>[{"type"=>[{"coding"=>[{"system"=>"urn:ietf:rfc:3986", "code"=>"RicardianContract"}]}], "subtype"=>[{"text"=>"sample"}], "period"=>[{"start"=>"2017-06-01"}], "valuedItem"=>[{"entityCodeableConcept"=>{"text"=>"Ford Bobcat"}, "identifier"=>{"system"=>"http://somewhere.motor-vehicle.com/vin", "value"=>"XXSVT34-7665t952236"}, "effectiveTime"=>"1995", "quantity"=>{"value"=>1}, "unitPrice"=>{"value"=>200.0, "currency"=>"CAD"}, "factor"=>1.0, "points"=>1.0, "net"=>{"value"=>200.0, "currency"=>"CAD"}}]}]}], "rule"=>[{"contentAttachment"=>{"contentType"=>"application/txt", "url"=>"http://www.rfc-editor.org/bcp/bcp13.txt"}}], "legallyBindingAttachment"=>{"contentType"=>"application/pdf", "url"=>"http://www.aws3.com/storage/doc.pdf"}}