{
  "resourceType": "StructureDefinition",
  "url": "http://example.org/fhir/StructureDefinition/SDCDocumentReference",
  "name": "SDCDocumentReference",
  "status": "draft",
  "fhirVersion": "4.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "DocumentReference",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DocumentReference",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "DocumentReference.masterIdentifier",
        "path": "DocumentReference.masterIdentifier",
        "comment": "The masterIdentifier should be derived from the SDC formID and formInstanceVersionURI in the format of formID.formInstanceVersionURI",
        "requirements": "The structure and format of this Id shall be consistent with the specification corresponding to the InstanceVersionURI specified in the SDC Technical Reference Guide"
      },
      {
        "id": "DocumentReference.identifier",
        "path": "DocumentReference.identifier",
        "comment": "Other identifiers associated with the document, including version independent identifiers. Map other SDC Identifiers here including: Lineage, FormID, Version, BaseURI, InstanceURI, FullURI"
      },
      {
        "id": "DocumentReference.relatesTo",
        "path": "DocumentReference.relatesTo",
        "comment": "Relationships that this document has with other DocumentReferences and Observations. Needs to map to DocumentReference masterIdentifier, and must map to any Observations Identifiers that are derived from this DocumentReference"
      },
      {
        "id": "DocumentReference.content",
        "path": "DocumentReference.content",
        "comment": "Should provide access to the form as either data or url."
      },
      {
        "id": "DocumentReference.context",
        "path": "DocumentReference.context",
        "comment": "Should reference created observations from this form."
      }
    ]
  }
}