Sample patient with all FHIR resources

831 views
Skip to first unread message

Chandan Datta

unread,
Dec 13, 2014, 7:15:15 PM12/13/14
to smart-...@googlegroups.com
Hi all,

I have setup the smart-installer. Is there any patient with all the FHIR data such as allergies, immunizations, Family History, Documents etc?

Nikolai Schwertner

unread,
Dec 15, 2014, 1:07:54 PM12/15/14
to smart-...@googlegroups.com
Allen Vitalis features a variety of resources


On 12/13/14 7:15 PM, Chandan Datta wrote:
Hi all,

I have setup the smart-installer. Is there any patient with all the FHIR data such as allergies, immunizations, Family History, Documents etc?
--
You received this message because you are subscribed to the Google Groups "SMART on FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smart-on-fhi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Chandan Datta

unread,
Dec 19, 2014, 7:07:33 AM12/19/14
to Nikolai Schwertner, smart-...@googlegroups.com
After installing the FHIR server, I searched for Allen, but can't see. Only these:

Daniel X. Adams Dec 23, 1925
Brian Q. Gracia Jun 22, 1965
Stephan P. Graham May 1, 1945
Robert P. Hill Oct 27, 1953
Carol U. Hughes Nov 4, 1949
Daniel A. Johnson Feb 22, 1995
Joseph I. Ross Oct 2, 2003
Amy V. Shaw Mar 20, 2007
Patrick G. Taylor Oct 15, 2004
Joshua P. Williams Aug 21, 1954


--
You received this message because you are subscribed to a topic in the Google Groups "SMART on FHIR" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/smart-on-fhir/Q97VvKGqNtQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to smart-on-fhi...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Regards,
Chandan

Josh Mandel

unread,
Dec 19, 2014, 9:16:44 AM12/19/14
to Chandan Datta, Nikolai Schwertner, smart-...@googlegroups.com
Hi Chandan,

By default the automatic build includes only 10 patients. You can update your custom settings to increase the 
sample_patients_limit" to include our full set of ~60 patients via:

sample_patients_limit: 1000

(Note: we added this limit just so people could quickly stand up a server and try things out -- but this may be "surprising" behavior. I've added a note to the README, at least. We should also consider updating the default limit to include all patients.)

Chandan Datta

unread,
Dec 19, 2014, 7:31:28 PM12/19/14
to Josh Mandel, Nikolai Schwertner, smart-...@googlegroups.com
Hi Josh,

Thank for that.

I added the sample_patient_limit to the file custom_settings.yml as well as increased in provisioning/roles/common/defaults/main.yml to 1000  , but none of the changes worked after doing an ansible rebuild. Is there any test code to query the database sever to check whether the build is getting through.
--
Regards,
Chandan

Nikolai Schwertner

unread,
Dec 19, 2014, 8:21:32 PM12/19/14
to smart-...@googlegroups.com

Chandan Datta

unread,
Dec 19, 2014, 8:35:33 PM12/19/14
to Nikolai Schwertner, smart-...@googlegroups.com
Hi Nikolai,

The last build went through fine and it is working now

Chandan Datta

unread,
Dec 19, 2014, 8:40:55 PM12/19/14
to Nikolai Schwertner, smart-...@googlegroups.com
Is there a way to add Family history, Dispenses, allergies to Allen (id 99912345) ?

{
  "resourceType": "Bundle",
  "title": "FHIR Atom Feed",
  "link": [
    {
      "rel": "self",
    }
  ],
  "totalResults": 0,
  "updated": "2014-12-19T20:38:25.503-05:00",
  "author": [
    {
      "name": "groovy.config.atom.author-name",
      "uri": "groovy.config.atom.author-uri"
    }
  ]
}
--
Regards,
Chandan

Nikolai Schwertner

unread,
Dec 19, 2014, 9:53:05 PM12/19/14
to smart-...@googlegroups.com

Jean-Michel Lavarenne

unread,
Sep 23, 2015, 10:20:38 AM9/23/15
to SMART on FHIR
Hi,

How would I go about creating practitioner sample data?
To be more precise, I want to include practitioner sample data and also create a relationship reference to immunization resources, to make this available as Immunization.performer.

Can that change be accommodated by the existing immunization.txt csv file?

Thanks!

Nikolai Schwertner

unread,
Sep 23, 2015, 2:17:16 PM9/23/15
to smart-...@googlegroups.com
Hi Jean-Michel,

Unfortunately, we don't have a generic mechanism for creating practitioner sample data. In our sample patient set, we only provide one sample practitioner. The practitioner is generated with this template:
https://github.com/smart-on-fhir/sample-patients/blob/master/bin/fhir_templates/practitioner.xml

As for the immunizations, our sample patient generator does not include performer data (see https://github.com/smart-on-fhir/sample-patients/blob/master/bin/fhir_templates/immunization.xml) and the underlying data source file does not have a provision for it. However, you are welcome to extend the generator however you see fit.

Best,
Nikolai
--

Jean-Michel Lavarenne

unread,
Sep 30, 2015, 4:34:57 PM9/30/15
to SMART on FHIR
Hi Nikolai,

Thanks for your answer, it looks like what I need to do.

In a nutshell, is it correct that what I need to do is update the generate.py file to write FHIR xml to the /generated_data directory and then I can expect the data to be available in my local install of the SMART sandbox after provisioning?

Best regards,
JM 

Nikolai Schwertner

unread,
Sep 30, 2015, 5:18:17 PM9/30/15
to smart-...@googlegroups.com
This is correct, for the most part, assuming that you properly configure the installer to use your sample patients builder instead of the public one that we are hosting. Alternatively, you can use the generator to build your patient data files in FHIR format outside the context of the installer and then push them to your API server from the command line (see how we are doing it in the build script https://github.com/smart-on-fhir/installer/blob/master/provisioning/roles/common/tasks/sample-data.yml#L48)/

Most likely, you won't have to change anything in "generate.py", but instead in "fhir.py", "immunizations.py", the immunizations template and data file.
--

Jean-Michel Lavarenne

unread,
Oct 8, 2015, 5:33:15 PM10/8/15
to SMART on FHIR
Thanks for that pointer, Nikolai.  Can I expect it to work with json too?  I am trying the following with no success:

curl -u client:secret 'http://localhost:3000/?' -H 'Content-Type: application/json' --data-binary @my-app.json

I get an xml error message back:


<OperationOutcome xmlns="http://hl7.org/fhir">

  <issue>

    <severity value="error"/>

  </issue>

</OperationOutcome>

Josh Mandel

unread,
Oct 8, 2015, 5:38:45 PM10/8/15
to Jean-Michel Lavarenne, SMART on FHIR
Should work in JSON and XML -- but you'll want to set an "Accept" header to indicate the format of response you want back. (Given the error you're seeing, I'm guessing you'll just get a JSON-encoded version of the same unhelpful OperationOutcome.)



--

Jean-Michel Lavarenne

unread,
Oct 9, 2015, 8:58:34 AM10/9/15
to SMART on FHIR
Thanks Josh, I got it to work with the sample json in the custom-data directory.  I must be having formatting issues with the json I am attempting to import, or else missing requirements and expectations about elements that I don't know about yet.

Paul Laoha

unread,
Oct 21, 2015, 7:39:28 PM10/21/15
to SMART on FHIR
Hi,

I'm trying to add more immunization data but am receiving this error:

{

  "resourceType": "OperationOutcome",

  "issue": [

    {

      "severity": "error",

      "details": {

        "text": "Cannot cast object 'value=\"1\"' with class 'org.apache.xerces.dom.DeferredAttrNSImpl' to class 'float'"

      }

    }

  ]

}


The data I'm trying to add looks as follows:


"vaccinationProtocol": [

   {

    "doseSequence": "1",

    "series": "Havrix",

    "seriesDoses": "2"

  }

]


I believe the doseSequence is not allowing me to pass in a positiveInt even though it is part of the FHIR standard.

Any suggestions on how to add this?

Josh Mandel

unread,
Oct 22, 2015, 1:23:40 AM10/22/15
to Paul Laoha, SMART on FHIR

Thanks for the report, Paul. This is a bug in our server, specifically in the search indexing process, which we intend to fix. It is in our issues list (https://github.com/smart-on-fhir/api-server/issues/27)

Best,

Josh

Paul L

unread,
Oct 26, 2015, 7:04:42 PM10/26/15
to SMART on FHIR
Hi,

I would like to ask another question related to patient data.  

Is there a recommended way to get immunization data from SMART on FHIR for vaccinations which have not occured yet?  For instance, suppose I'm looking at HepB and it requires 3 vaccinations but the patient has only done 1 based on immunization history.  Would there be a standard way to get the information for the other 2 incomplete vaccination events still to occur.


Regards,
Paul


On Saturday, December 13, 2014 at 4:15:15 PM UTC-8, Chandan Datta wrote:

Josh Mandel

unread,
Oct 28, 2015, 5:08:11 PM10/28/15
to Paul L, SMART on FHIR
Hi Paul,

The Immunization resource doesn't capture future plans, but you can use an ImmunizationRecommendation to capture specifically scheduled recommendations.

Best,

  Josh

--
Reply all
Reply to author
Forward
0 new messages