def create(self, server):
        """ Attempt to create the receiver on the given server, using a POST
        command.
        
        :param FHIRServer server: The server to create the receiver on
        :returns: None or the response JSON on success
        """
        srv = server or self.server
        if srv is None:
            raise Exception("Cannot create a resource without a server")
        if self.id:
            raise Exception("This resource already has an id, cannot create")
        
        ret = srv.post_json(self.relativePath(), self.as_json())
        if len(ret.text) > 0:
            return ret.json()
        return None
dataset/ETHPy150Open smart-on-fhir/client-py/fhirclient/models/fhirabstractresource.py/FHIRAbstractResource.create/original