{

"resourceType": "Contract",
"id": "C-2121",
"meta": {
  "versionId": "1",
  "lastUpdated": "2016-07-19T18:18:42.108-04:00",
  "tag": [
    {
      "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
      "code": "HTEST",
      "display": "test health data"
    }
  ]
},
"status": "executed",
"contentDerivative": {
  "coding": [
    {
      "system": "http://terminology.hl7.org/CodeSystem/contract-content-derivative",
      "code": "registration"
    }
  ]
},
"issued": "2013-11-01T21:18:27-04:00",
"applies": {
  "start": "2013-11-01T21:18:27-04:00"
},
"subject": [
  {
    "reference": "Patient/f201"
  }
],
"type": {
  "coding": [
    {
      "system": "http://mdhhs.org/fhir/consentdirective-type",
      "code": "OPTIN"
    }
  ],
  "text": "Opt-in consent directive"
},
"subType": [
  {
    "coding": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/consentcategorycodes",
        "code": "hcd"
      }
    ]
  }
],
"term": [
  {
    "offer": {
      "type": {
        "coding": [
          {
            "system": "http://terminology.hl7.org/CodeSystem/contracttermtypecodes",
            "code": "statutory"
          }
        ]
      },
      "decision": {
        "coding": [
          {
            "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
            "code": "OPTIN"
          }
        ]
      },
      "text": "Can't refuse"
    },
    "asset": [
      {
        "period": [
          {
            "start": "2013-11-01T21:18:27-04:00",
            "end": "2019-11-01T21:18:27-04:00"
          }
        ]
      }
    ],
    "action": [
      {
        "type": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/contractaction",
              "code": "action-a"
            }
          ]
        },
        "subject": [
          {
            "reference": [
              {
                "reference": "Organization/f001",
                "display": "VA Ann Arbor Healthcare System"
              }
            ],
            "role": {
              "coding": [
                {
                  "system": "http://mdhhs.org/fhir/consent-actor-type",
                  "code": "IR",
                  "display": "Recipient"
                }
              ],
              "text": "Recipient of restricted health information"
            }
          },
          {
            "reference": [
              {
                "reference": "Organization/2",
                "display": "Community Mental Health Clinic"
              }
            ],
            "role": {
              "coding": [
                {
                  "system": "http://mdhhs.org/fhir/consent-actor-type",
                  "code": "IS",
                  "display": "Sender"
                }
              ],
              "text": "Sender of restricted health information"
            }
          }
        ],
        "intent": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
              "code": "HPRGRP"
            }
          ]
        },
        "status": {
          "text": "Sample"
        }
      }
    ]
  }
],
"signer": [
  {
    "type": {
      "system": "http://mdhhs.org/fhir/consent-signer-type",
      "code": "SELF"
    },
    "party": {
      "reference": "Patient/f201",
      "display": "Alice Recruit"
    },
    "signature": [
      {
        "type": [
          {
            "system": "urn:iso-astm:E1762-95:2013",
            "code": "1.2.840.10065.1.12.1.1"
          }
        ],
        "when": "2017-02-08T10:57:34+01:00",
        "who": {
          "reference": "Patient/f201"
        }
      }
    ]
  }
],
"legal": [
  {
    "contentAttachment": {
      "contentType": "application/pdf",
      "language": "en-US",
      "url": "http://org.mihin.ecms/ConsentDirective-2121",
      "title": "MDHHS-5515 Consent To Share Your Health Information"
    }
  }
]

}