the '' @create '' annotation indicates that this method implements `` create = type '' , which adds a new instance of a resource to the server . concode_field_sep Map<Long,Deque<Patient>> myIdToPatientVersions concode_elem_sep long myNextId concode_field_sep void addNewVersion concode_elem_sep List<Patient> findPatientsUsingArbitraryCtriteria concode_elem_sep void validateResource concode_elem_sep MethodOutcome updatePatient concode_elem_sep Class<Patient> getResourceType concode_elem_sep List<Patient> findPatientsByName concode_elem_sep Patient readPatient
MethodOutcome function ( @ ResourceParam Patient arg0 ) { validateResource ( arg0 ) ; long loc0 = myNextId ++ ; addNewVersion ( arg0 , loc0 ) ; return new MethodOutcome ( new IdDt ( loc0 ) ) ; }