Docs
  • Welcome to the ipEHR docs
  • Concepts
    • Basics
      • What is EHR?
      • What is ipEHR?
      • ipEHR and the problems it solves
      • How ipEHR works
    • Components
      • Gateway
      • Datastore Node
      • Document Index
      • Users Directory
      • Access Management
      • Data publishing
    • Encryption
  • Guides
    • Install
      • Contracts deployment
      • Gateway
      • Stat
  • Reference
    • APIs
      • Gateway HTTP REST API
      • Stat HTTP REST API
    • Contracts
      • EhrIndexer
      • Users
      • AccessStore
      • DataStore
Powered by GitBook
On this page
  • Functions
  • dataUpdate
  • Models
  1. Reference
  2. Contracts

DataStore

The contract is used to publish the content of EHR documents.

There is no data storage in the contract. The data index is built by Stat workers by retrieving information from transactions call data.

Functions

dataUpdate

function dataUpdate(
    bytes32 groupID,
    bytes32 dataID,
    bytes32 ehrID,
    bytes calldata data,
    address signer,
    uint deadline,
    bytes calldata signature
) external onlyAllowed(msg.sender) 

Parameters

Name
Type
Description

groupID

bytes32

dataID

bytes32

ehrID

bytes32

data

bytes

signer

address

Address of the signer of the request

deadline

uint

Expiration timestamp of the request

signature

bytes

Cryptographic signature of the request performed by the signer's key

Models

PreviousAccessStore

Last updated 1 year ago