Changes between Version 11 and Version 12 of Onyx to CiviCRM


Ignore:
Timestamp:
12/13/13 08:40:15 (11 years ago)
Author:
Richard Bramley
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Onyx to CiviCRM

    v11 v12  
    1717The following data will be copied from the Onyx database to CiviCRM (the question name within Onyx is shown in brackets):
    1818
    19 - Date and Time of Interview {Interview.start_date}
    20 - Partiticant Number (Participant.barcode)
    21 - Interview Status (Interview.status) Values of
     19- [x] Date and Time of Interview {Interview.start_date}
     20- [x] Partiticant Number (Participant.barcode)
     21- [ ] Interview Status (Interview.status) Values of
    2222 - IN_PROGRESS
    2323 - CLOSED
    2424 - CANCELLED
    2525 - COMPLETED
    26 - Title (participant_attribute_value.pat_title)
    27 - First Name (Participant.firstName)
    28 - Surname (Participant.lastName)
    29 - Address
     26- [ ] Title (participant_attribute_value.pat_title)
     27- [x] First Name (Participant.firstName)
     28- [x] Surname (Participant.lastName)
     29- [ ] Address
    3030 - participant_attribute_value.pat_address1
    3131 - participant_attribute_value.pat_address2
     
    3333 - participant_attribute_value.pat_address4
    3434 - participant_attribute_value.pat_postcode
    35 - Date of Birth (Participant.birthDate)
    36 - Gender (Participant.gender)
     35- [x] Date of Birth (Participant.birthDate)
     36- [x] Gender (Participant.gender)
    3737 - FEMALE or MALE
    38 - Participant NHS Number {participant_attribute_value.pat_nhsnumber}
    39 - Participant UHL System Number {Participant.enrollmentId}
    40 - Consent Values
     38- [ ] Participant NHS Number {participant_attribute_value.pat_nhsnumber}
     39- [x] Participant UHL System Number {Participant.enrollmentId}
     40- [x] Consent Values
    4141 - Understands the request for consent (question_answer.question_name="consent_q1")
    4242 - Consents to donate blood and urine (question_answer.question_name="consent_q2")
     
    5858SELECT
    5959      p.id AS ParticipantID
     60    , i.start_date AS interviewDate
    6061    , p.barcode AS StudyID
    6162    , p.first_name
     
    6465    , p.gender
    6566    , p.enrollment_id AS UhlSystemNumber
    66     , consent.q1
    67     , consent.q2
    68     , consent.q3
    69     , consent.q4
    70     , consent.q5
     67    , consent.q1 AS consent_understandsConsent
     68    , consent.q2 AS consent_bloodAndUrine
     69    , consent.q3 AS consent_briccsDatabase
     70    , consent.q4 AS consent_furtherContact
     71    , consent.q5 AS consent_understandsWithdrawal
    7172FROM participant p
     73JOIN interview i ON i.participant_id = p.id
    7274LEFT JOIN (
    7375    SELECT